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

Unified Diff: Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp

Issue 1303953005: Oilpan: fix build after r201058. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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/invalidation/StyleSheetInvalidationAnalysis.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp
diff --git a/Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp b/Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp
index b5e3748940e83d7eaa24931809a9c3d323417a2c..9f94cd011379ce13a0e350303efe704510c22e0c 100644
--- a/Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp
+++ b/Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp
@@ -39,7 +39,7 @@
namespace blink {
StyleSheetInvalidationAnalysis::StyleSheetInvalidationAnalysis(const TreeScope& treeScope, const WillBeHeapVector<RawPtrWillBeMember<StyleSheetContents>>& sheets)
- : m_treeScope(treeScope)
+ : m_treeScope(&treeScope)
{
for (unsigned i = 0; i < sheets.size() && !m_dirtiesAllStyle; ++i)
analyzeStyleSheet(sheets[i]);
@@ -139,7 +139,7 @@ void StyleSheetInvalidationAnalysis::analyzeStyleSheet(StyleSheetContents* style
return;
}
- if (m_treeScope.rootNode().isShadowRoot()) {
+ if (m_treeScope->rootNode().isShadowRoot()) {
if (hasDistributedRule(styleSheetContents))
m_hasDistributedRules = true;
return;
@@ -189,8 +189,8 @@ void StyleSheetInvalidationAnalysis::invalidateStyle()
{
ASSERT(!m_dirtiesAllStyle);
- if (m_treeScope.rootNode().isShadowRoot()) {
- ContainerNode* invalidationRoot = &m_treeScope.rootNode();
+ if (m_treeScope->rootNode().isShadowRoot()) {
+ ContainerNode* invalidationRoot = &m_treeScope->rootNode();
if (m_hasDistributedRules)
invalidationRoot = outermostShadowHost(*toShadowRoot(invalidationRoot));
invalidationRoot->setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::StyleSheetChange));
@@ -199,7 +199,7 @@ void StyleSheetInvalidationAnalysis::invalidateStyle()
if (m_idScopes.isEmpty() && m_classScopes.isEmpty())
return;
- Element* element = ElementTraversal::firstWithin(m_treeScope.document());
+ Element* element = ElementTraversal::firstWithin(m_treeScope->document());
while (element) {
if (elementMatchesSelectorScopes(element, m_idScopes, m_classScopes)) {
element->setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::StyleSheetChange));
« no previous file with comments | « Source/core/css/invalidation/StyleSheetInvalidationAnalysis.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698