Bug 1297899 - Part 3: Rename RestyleManager to GeckoRestyleManager and RestyleManagerBase to RestyleManager. r=bholley

MozReview-Commit-ID: fFTZKwmGJm
This commit is contained in:
Cameron McCormack
2017-02-13 11:21:32 +08:00
parent 3769d1a59e
commit 34c943ee6e
18 changed files with 185 additions and 183 deletions

View File

@@ -1882,16 +1882,16 @@ nsCSSFrameConstructor::CreateGeneratedContentItem(nsFrameConstructorState& aStat
// stylo: ServoRestyleManager does not handle transitions yet, and when it
// does it probably won't need to track reframed style contexts to start
// transitions correctly.
if (mozilla::RestyleManager* geckoRM = RestyleManager()->GetAsGecko()) {
RestyleManager::ReframingStyleContexts* rsc =
if (mozilla::GeckoRestyleManager* geckoRM = RestyleManager()->GetAsGecko()) {
GeckoRestyleManager::ReframingStyleContexts* rsc =
geckoRM->GetReframingStyleContexts();
if (rsc) {
nsStyleContext* oldStyleContext = rsc->Get(container, aPseudoElement);
if (oldStyleContext) {
RestyleManager::TryInitiatingTransition(aState.mPresContext,
container,
oldStyleContext,
&pseudoStyleContext);
GeckoRestyleManager::TryInitiatingTransition(aState.mPresContext,
container,
oldStyleContext,
&pseudoStyleContext);
} else {
aState.mPresContext->TransitionManager()->
PruneCompletedTransitions(container, aPseudoElement,
@@ -5053,16 +5053,16 @@ nsCSSFrameConstructor::ResolveStyleContext(nsStyleContext* aParentStyleContext,
// ServoRestyleManager does not handle transitions yet, and when it does
// it probably won't need to track reframed style contexts to start
// transitions correctly.
if (mozilla::RestyleManager* geckoRM = RestyleManager()->GetAsGecko()) {
RestyleManager::ReframingStyleContexts* rsc =
if (mozilla::GeckoRestyleManager* geckoRM = RestyleManager()->GetAsGecko()) {
GeckoRestyleManager::ReframingStyleContexts* rsc =
geckoRM->GetReframingStyleContexts();
if (rsc) {
nsStyleContext* oldStyleContext =
rsc->Get(aContent, CSSPseudoElementType::NotPseudo);
nsPresContext* presContext = mPresShell->GetPresContext();
if (oldStyleContext) {
RestyleManager::TryInitiatingTransition(presContext, aContent,
oldStyleContext, &result);
GeckoRestyleManager::TryInitiatingTransition(presContext, aContent,
oldStyleContext, &result);
} else if (aContent->IsElement()) {
presContext->TransitionManager()->
PruneCompletedTransitions(aContent->AsElement(),