summaryrefslogtreecommitdiffstats
path: root/layout/base/ServoRestyleManager.cpp
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-04-17 05:04:10 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-04-17 05:04:10 -0400
commit9f6cb6874e537fd4f451e507b1832b94b04d9d97 (patch)
tree5f5203e49a079233c5959d5f5d433e412437832e /layout/base/ServoRestyleManager.cpp
parent0d362ca50335d964a78dbba7e7d32574ee67899a (diff)
downloadUXP-9f6cb6874e537fd4f451e507b1832b94b04d9d97.tar
UXP-9f6cb6874e537fd4f451e507b1832b94b04d9d97.tar.gz
UXP-9f6cb6874e537fd4f451e507b1832b94b04d9d97.tar.lz
UXP-9f6cb6874e537fd4f451e507b1832b94b04d9d97.tar.xz
UXP-9f6cb6874e537fd4f451e507b1832b94b04d9d97.zip
Bug 1296516 - Cleanup a bit of code in layout/base
* Tidy RestyleManager::ContentStateChanged * Convert UndisplayedMap to a typed hashtable * Cleanup infallible or unchecked nsCSSFrameConstructor methods Tag #1375
Diffstat (limited to 'layout/base/ServoRestyleManager.cpp')
-rw-r--r--layout/base/ServoRestyleManager.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/layout/base/ServoRestyleManager.cpp b/layout/base/ServoRestyleManager.cpp
index 42ca23bb1..9624c678b 100644
--- a/layout/base/ServoRestyleManager.cpp
+++ b/layout/base/ServoRestyleManager.cpp
@@ -513,12 +513,12 @@ ServoRestyleManager::ContentRemoved(nsINode* aContainer,
NS_WARNING("stylo: ServoRestyleManager::ContentRemoved not implemented");
}
-nsresult
+void
ServoRestyleManager::ContentStateChanged(nsIContent* aContent,
EventStates aChangedBits)
{
if (!aContent->IsElement()) {
- return NS_OK;
+ return;
}
Element* aElement = aContent->AsElement();
@@ -552,7 +552,6 @@ ServoRestyleManager::ContentStateChanged(nsIContent* aContent,
snapshot->AddState(previousState);
PostRestyleEvent(aElement, restyleHint, changeHint);
- return NS_OK;
}
void