Bug 1297899 - Part 3: Rename RestyleManager to GeckoRestyleManager and RestyleManagerBase to RestyleManager. r=bholley
MozReview-Commit-ID: fFTZKwmGJm
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user