Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(681)

Unified Diff: Source/core/css/SelectorChecker.cpp

Issue 975933002: Return reference from styleEngine() accessor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/FontFaceSet.cpp ('k') | Source/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/SelectorChecker.cpp
diff --git a/Source/core/css/SelectorChecker.cpp b/Source/core/css/SelectorChecker.cpp
index 7a41f6b12896b0952a993c9c8948e2eacac5b7ff..caa45243af9008f56f2cbce3b6873c94672303eb 100644
--- a/Source/core/css/SelectorChecker.cpp
+++ b/Source/core/css/SelectorChecker.cpp
@@ -144,7 +144,7 @@ SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext& con
PseudoId pseudoId = CSSSelector::pseudoId(context.selector->pseudoType());
if (pseudoId == FIRST_LETTER)
- context.element->document().styleEngine()->setUsesFirstLetterRules(true);
+ context.element->document().styleEngine().setUsesFirstLetterRules(true);
if (pseudoId != NOPSEUDO && m_mode != SharingRules && result)
result->dynamicPseudo = pseudoId;
}
@@ -625,7 +625,7 @@ bool SelectorChecker::checkPseudoClass(const SelectorCheckingContext& context, c
element.setStyleAffectedByEmpty();
if (context.elementStyle)
context.elementStyle->setEmptyState(result);
- else if (element.layoutStyle() && (element.document().styleEngine()->usesSiblingRules() || element.layoutStyle()->unique()))
+ else if (element.layoutStyle() && (element.document().styleEngine().usesSiblingRules() || element.layoutStyle()->unique()))
element.layoutStyle()->setEmptyState(result);
}
return result;
« no previous file with comments | « Source/core/css/FontFaceSet.cpp ('k') | Source/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698