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

Side by Side Diff: third_party/WebKit/Source/core/dom/StyleEngine.cpp

Issue 2278803002: Use AnalyzedStyleUpdate for non-blocking sheets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed old test Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 } 223 }
224 224
225 void StyleEngine::modifiedStyleSheetCandidateNode(Node* node) 225 void StyleEngine::modifiedStyleSheetCandidateNode(Node* node)
226 { 226 {
227 if (!node->isConnected()) 227 if (!node->isConnected())
228 return; 228 return;
229 229
230 TreeScope& treeScope = isStyleElement(*node) ? node->treeScope() : *m_docume nt; 230 TreeScope& treeScope = isStyleElement(*node) ? node->treeScope() : *m_docume nt;
231 DCHECK(isStyleElement(*node) || treeScope == m_document); 231 DCHECK(isStyleElement(*node) || treeScope == m_document);
232 markTreeScopeDirty(treeScope); 232 markTreeScopeDirty(treeScope);
233 resolverChanged(FullStyleUpdate); 233 resolverChanged(AnalyzedStyleUpdate);
234 } 234 }
235 235
236 void StyleEngine::watchedSelectorsChanged() 236 void StyleEngine::watchedSelectorsChanged()
237 { 237 {
238 if (m_resolver) { 238 if (m_resolver) {
239 m_resolver->initWatchedSelectorRules(); 239 m_resolver->initWatchedSelectorRules();
240 m_resolver->resetRuleFeatures(); 240 m_resolver->resetRuleFeatures();
241 } 241 }
242 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci ng::create(StyleChangeReason::DeclarativeContent)); 242 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci ng::create(StyleChangeReason::DeclarativeContent));
243 } 243 }
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 829
830 DEFINE_TRACE_WRAPPERS(StyleEngine) 830 DEFINE_TRACE_WRAPPERS(StyleEngine)
831 { 831 {
832 for (auto sheet : m_injectedAuthorStyleSheets) { 832 for (auto sheet : m_injectedAuthorStyleSheets) {
833 visitor->traceWrappers(sheet); 833 visitor->traceWrappers(sheet);
834 } 834 }
835 visitor->traceWrappers(m_documentStyleSheetCollection); 835 visitor->traceWrappers(m_documentStyleSheetCollection);
836 } 836 }
837 837
838 } // namespace blink 838 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698