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

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

Issue 2611053004: Use setNeedsActiveStyleUpdate instead of markTreeScopeDirty. (Closed)
Patch Set: Created 3 years, 11 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 | « third_party/WebKit/LayoutTests/fast/dom/shadow/move-shadow-host-to-child-iframe-crash.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 af6777e99ccd8e23c99c72ea2685633a9206fc28..80a7dd0ae76afb41ca299c780311c22483a0dd26 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
@@ -169,7 +169,7 @@ void StyleEngine::addPendingSheet(StyleEngineContext& context) {
void StyleEngine::removePendingSheet(Node& styleSheetCandidateNode,
const StyleEngineContext& context) {
if (styleSheetCandidateNode.isConnected())
- markTreeScopeDirty(styleSheetCandidateNode.treeScope());
+ setNeedsActiveStyleUpdate(styleSheetCandidateNode.treeScope());
if (context.addedPendingSheetBeforeBody()) {
DCHECK_GT(m_pendingRenderBlockingStylesheets, 0);
@@ -203,7 +203,7 @@ void StyleEngine::addStyleSheetCandidateNode(Node& node) {
DCHECK(collection);
collection->addStyleSheetCandidateNode(node);
- markTreeScopeDirty(treeScope);
+ setNeedsActiveStyleUpdate(treeScope);
if (treeScope != m_document)
m_activeTreeScopes.add(&treeScope);
}
@@ -227,12 +227,12 @@ void StyleEngine::removeStyleSheetCandidateNode(Node& node,
return;
collection->removeStyleSheetCandidateNode(node);
- markTreeScopeDirty(treeScope);
+ setNeedsActiveStyleUpdate(treeScope);
}
void StyleEngine::modifiedStyleSheetCandidateNode(Node& node) {
if (node.isConnected())
- markTreeScopeDirty(node.treeScope());
+ setNeedsActiveStyleUpdate(node.treeScope());
}
void StyleEngine::mediaQueriesChangedInScope(TreeScope& treeScope) {
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/dom/shadow/move-shadow-host-to-child-iframe-crash.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698