зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1296516: Tidy RestyleManager::ContentStateChanged. r=heycam
MozReview-Commit-ID: 7iWc6JvljhT
This commit is contained in:
Родитель
7c764b25b0
Коммит
6c40f8a40b
|
@ -200,14 +200,14 @@ ElementForStyleContext(nsIContent* aParentContent,
|
|||
|
||||
// Forwarded nsIDocumentObserver method, to handle restyling (and
|
||||
// passing the notification to the frame).
|
||||
nsresult
|
||||
void
|
||||
GeckoRestyleManager::ContentStateChanged(nsIContent* aContent,
|
||||
EventStates aStateMask)
|
||||
{
|
||||
// XXXbz it would be good if this function only took Elements, but
|
||||
// we'd have to make ESM guarantee that usefully.
|
||||
if (!aContent->IsElement()) {
|
||||
return NS_OK;
|
||||
return;
|
||||
}
|
||||
|
||||
Element* aElement = aContent->AsElement();
|
||||
|
@ -217,7 +217,6 @@ GeckoRestyleManager::ContentStateChanged(nsIContent* aContent,
|
|||
ContentStateChangedInternal(aElement, aStateMask, &changeHint, &restyleHint);
|
||||
|
||||
PostRestyleEvent(aElement, restyleHint, changeHint);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// Forwarded nsIMutationObserver method, to handle restyling.
|
||||
|
|
|
@ -54,8 +54,8 @@ protected:
|
|||
public:
|
||||
// Forwarded nsIDocumentObserver method, to handle restyling (and
|
||||
// passing the notification to the frame).
|
||||
nsresult ContentStateChanged(nsIContent* aContent,
|
||||
EventStates aStateMask);
|
||||
void ContentStateChanged(nsIContent* aContent,
|
||||
EventStates aStateMask);
|
||||
|
||||
// Forwarded nsIMutationObserver method, to handle restyling.
|
||||
void AttributeWillChange(Element* aElement,
|
||||
|
|
|
@ -174,8 +174,8 @@ public:
|
|||
inline void PostRebuildAllStyleDataEvent(nsChangeHint aExtraHint,
|
||||
nsRestyleHint aRestyleHint);
|
||||
inline void ProcessPendingRestyles();
|
||||
inline nsresult ContentStateChanged(nsIContent* aContent,
|
||||
EventStates aStateMask);
|
||||
inline void ContentStateChanged(nsIContent* aContent,
|
||||
EventStates aStateMask);
|
||||
inline void AttributeWillChange(dom::Element* aElement,
|
||||
int32_t aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
|
|
|
@ -44,7 +44,7 @@ RestyleManager::ProcessPendingRestyles()
|
|||
MOZ_STYLO_FORWARD(ProcessPendingRestyles, ());
|
||||
}
|
||||
|
||||
nsresult
|
||||
void
|
||||
RestyleManager::ContentStateChanged(nsIContent* aContent,
|
||||
EventStates aStateMask)
|
||||
{
|
||||
|
|
|
@ -462,12 +462,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();
|
||||
|
@ -502,8 +502,6 @@ ServoRestyleManager::ContentStateChanged(nsIContent* aContent,
|
|||
snapshot->AddState(previousState);
|
||||
PostRestyleEvent(aElement, restyleHint, changeHint);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -63,8 +63,7 @@ public:
|
|||
nsIContent* aChild);
|
||||
void RestyleForAppend(nsIContent* aContainer,
|
||||
nsIContent* aFirstNewContent);
|
||||
nsresult ContentStateChanged(nsIContent* aContent,
|
||||
EventStates aStateMask);
|
||||
void ContentStateChanged(nsIContent* aContent, EventStates aStateMask);
|
||||
void AttributeWillChange(dom::Element* aElement,
|
||||
int32_t aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
|
|
Загрузка…
Ссылка в новой задаче