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

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

Issue 2546393002: Make setNeedsActiveStyleUpdate mark treescope dirty only. (Closed)
Patch Set: Rebased Created 4 years 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, 2010, 2012 Apple Inc. All 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 namespace blink { 54 namespace blink {
55 55
56 class CSSFontSelector; 56 class CSSFontSelector;
57 class CSSStyleSheet; 57 class CSSStyleSheet;
58 class MediaQueryEvaluator; 58 class MediaQueryEvaluator;
59 class Node; 59 class Node;
60 class RuleFeatureSet; 60 class RuleFeatureSet;
61 class ShadowTreeStyleSheetCollection; 61 class ShadowTreeStyleSheetCollection;
62 class StyleRuleFontFace; 62 class StyleRuleFontFace;
63 class StyleRuleUsageTracker; 63 class StyleRuleUsageTracker;
64 class StyleSheet;
65 class StyleSheetContents; 64 class StyleSheetContents;
66 class ViewportStyleResolver; 65 class ViewportStyleResolver;
67 66
68 class CORE_EXPORT StyleEngine final 67 class CORE_EXPORT StyleEngine final
69 : public GarbageCollectedFinalized<StyleEngine>, 68 : public GarbageCollectedFinalized<StyleEngine>,
70 public CSSFontSelectorClient, 69 public CSSFontSelectorClient,
71 public TraceWrapperBase { 70 public TraceWrapperBase {
72 USING_GARBAGE_COLLECTED_MIXIN(StyleEngine); 71 USING_GARBAGE_COLLECTED_MIXIN(StyleEngine);
73 72
74 public: 73 public:
(...skipping 21 matching lines...) Expand all
96 95
97 const HeapVector<TraceWrapperMember<CSSStyleSheet>>& 96 const HeapVector<TraceWrapperMember<CSSStyleSheet>>&
98 injectedAuthorStyleSheets() const { 97 injectedAuthorStyleSheets() const {
99 return m_injectedAuthorStyleSheets; 98 return m_injectedAuthorStyleSheets;
100 } 99 }
101 CSSStyleSheet* inspectorStyleSheet() const { return m_inspectorStyleSheet; } 100 CSSStyleSheet* inspectorStyleSheet() const { return m_inspectorStyleSheet; }
102 101
103 const HeapVector<Member<CSSStyleSheet>> activeStyleSheetsForInspector() const; 102 const HeapVector<Member<CSSStyleSheet>> activeStyleSheetsForInspector() const;
104 103
105 bool needsActiveStyleUpdate() const; 104 bool needsActiveStyleUpdate() const;
106 void setNeedsActiveStyleUpdate(StyleSheet*, StyleResolverUpdateMode); 105 void setNeedsActiveStyleUpdate(TreeScope&);
107 void addStyleSheetCandidateNode(Node&); 106 void addStyleSheetCandidateNode(Node&);
108 void removeStyleSheetCandidateNode(Node&, ContainerNode& insertionPoint); 107 void removeStyleSheetCandidateNode(Node&, ContainerNode& insertionPoint);
109 void modifiedStyleSheetCandidateNode(Node&); 108 void modifiedStyleSheetCandidateNode(Node&);
110 void watchedSelectorsChanged(); 109 void watchedSelectorsChanged();
111 void initialViewportChanged(); 110 void initialViewportChanged();
112 void viewportRulesChanged(); 111 void viewportRulesChanged();
113 void htmlImportAddedOrRemoved(); 112 void htmlImportAddedOrRemoved();
114 113
115 void injectAuthorSheet(StyleSheetContents* authorSheet); 114 void injectAuthorSheet(StyleSheetContents* authorSheet);
116 CSSStyleSheet& ensureInspectorStyleSheet(); 115 CSSStyleSheet& ensureInspectorStyleSheet();
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 379
381 std::unique_ptr<StyleResolverStats> m_styleResolverStats; 380 std::unique_ptr<StyleResolverStats> m_styleResolverStats;
382 unsigned m_styleForElementCount = 0; 381 unsigned m_styleForElementCount = 0;
383 382
384 friend class StyleEngineTest; 383 friend class StyleEngineTest;
385 }; 384 };
386 385
387 } // namespace blink 386 } // namespace blink
388 387
389 #endif 388 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleElement.cpp ('k') | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698