Bug 1379421: Remove dead code in ServoRestyleManager. r?heycam
MozReview-Commit-ID: zNNcy6p5qD
--- a/layout/base/ServoRestyleManager.cpp
+++ b/layout/base/ServoRestyleManager.cpp
@@ -876,50 +876,16 @@ ServoRestyleManager::UpdateOnlyAnimation
if (!doCSS) {
return;
}
DoProcessPendingRestyles(TraversalRestyleBehavior::ForAnimationOnly);
}
void
-ServoRestyleManager::RestyleForInsertOrChange(nsINode* aContainer,
- nsIContent* aChild)
-{
- //
- // XXXbholley: We need the Gecko logic here to correctly restyle for things
- // like :empty and positional selectors (though we may not need to post
- // restyle events as agressively as the Gecko path does).
- //
- // Bug 1297899 tracks this work.
- //
-}
-
-void
-ServoRestyleManager::RestyleForAppend(nsIContent* aContainer,
- nsIContent* aFirstNewContent)
-{
- //
- // XXXbholley: We need the Gecko logic here to correctly restyle for things
- // like :empty and positional selectors (though we may not need to post
- // restyle events as agressively as the Gecko path does).
- //
- // Bug 1297899 tracks this work.
- //
-}
-
-void
-ServoRestyleManager::ContentRemoved(nsINode* aContainer,
- nsIContent* aOldChild,
- nsIContent* aFollowingSibling)
-{
- NS_WARNING("stylo: ServoRestyleManager::ContentRemoved not implemented");
-}
-
-void
ServoRestyleManager::ContentStateChanged(nsIContent* aContent,
EventStates aChangedBits)
{
MOZ_ASSERT(!mInStyleRefresh);
if (!aContent->IsElement()) {
return;
}
--- a/layout/base/ServoRestyleManager.h
+++ b/layout/base/ServoRestyleManager.h
@@ -120,27 +120,16 @@ public:
void RebuildAllStyleData(nsChangeHint aExtraHint,
nsRestyleHint aRestyleHint);
void PostRebuildAllStyleDataEvent(nsChangeHint aExtraHint,
nsRestyleHint aRestyleHint);
void ProcessPendingRestyles();
void UpdateOnlyAnimationStyles();
- void ContentInserted(nsINode* aContainer, nsIContent* aChild);
- void ContentAppended(nsIContent* aContainer,
- nsIContent* aFirstNewContent);
- void ContentRemoved(nsINode* aContainer,
- nsIContent* aOldChild,
- nsIContent* aFollowingSibling);
-
- void RestyleForInsertOrChange(nsINode* aContainer,
- nsIContent* aChild);
- void RestyleForAppend(nsIContent* aContainer,
- nsIContent* aFirstNewContent);
void ContentStateChanged(nsIContent* aContent, EventStates aStateMask);
void AttributeWillChange(dom::Element* aElement,
int32_t aNameSpaceID,
nsIAtom* aAttribute,
int32_t aModType,
const nsAttrValue* aNewValue);
void ClassAttributeWillBeChangedBySMIL(dom::Element* aElement);