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

Unified Diff: third_party/WebKit/Source/core/dom/StyleEngine.cpp

Issue 1858163002: Rename inDocument() to inShadowIncludingDocument() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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
Index: third_party/WebKit/Source/core/dom/StyleEngine.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.cpp b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
index 9938cdf199deaf943c7fb6e1f8e1508a8c421167..98c81eb566bef1530da6f4848b9fc3a096002ff2 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
@@ -164,7 +164,7 @@ void StyleEngine::removePendingSheet(Node* styleSheetCandidateNode)
{
ASSERT(styleSheetCandidateNode);
TreeScope* treeScope = isStyleElement(*styleSheetCandidateNode) ? &styleSheetCandidateNode->treeScope() : m_document.get();
- if (styleSheetCandidateNode->inDocument())
+ if (styleSheetCandidateNode->inShadowIncludingDocument())
markTreeScopeDirty(*treeScope);
// Make sure we knew this sheet was pending, and that our count isn't out of sync.
@@ -188,7 +188,7 @@ void StyleEngine::setNeedsActiveStyleUpdate(StyleSheet* sheet, StyleResolverUpda
if (sheet && document().isActive()) {
Node* node = sheet->ownerNode();
- if (node && node->inDocument()) {
+ if (node && node->inShadowIncludingDocument()) {
TreeScope& treeScope = isStyleElement(*node) ? node->treeScope() : *m_document;
ASSERT(isStyleElement(*node) || node->treeScope() == m_document);
markTreeScopeDirty(treeScope);
@@ -200,7 +200,7 @@ void StyleEngine::setNeedsActiveStyleUpdate(StyleSheet* sheet, StyleResolverUpda
void StyleEngine::addStyleSheetCandidateNode(Node* node)
{
- if (!node->inDocument() || document().isDetached())
+ if (!node->inShadowIncludingDocument() || document().isDetached())
return;
TreeScope& treeScope = isStyleElement(*node) ? node->treeScope() : *m_document;
@@ -237,7 +237,7 @@ void StyleEngine::removeStyleSheetCandidateNode(Node* node, TreeScope& treeScope
void StyleEngine::modifiedStyleSheetCandidateNode(Node* node)
{
- if (!node->inDocument())
+ if (!node->inShadowIncludingDocument())
return;
TreeScope& treeScope = isStyleElement(*node) ? node->treeScope() : *m_document;

Powered by Google App Engine
This is Rietveld 408576698