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

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

Issue 2551473002: Correctly re-collect active style for html imports. (Closed)
Patch Set: 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 bool needsActiveStyleUpdate() const; 105 bool needsActiveStyleUpdate() const;
106 void setNeedsActiveStyleUpdate(StyleSheet*, StyleResolverUpdateMode); 106 void setNeedsActiveStyleUpdate(StyleSheet*, StyleResolverUpdateMode);
107 void addStyleSheetCandidateNode(Node&); 107 void addStyleSheetCandidateNode(Node&);
108 void removeStyleSheetCandidateNode(Node&); 108 void removeStyleSheetCandidateNode(Node&);
109 void removeStyleSheetCandidateNode(Node&, TreeScope&); 109 void removeStyleSheetCandidateNode(Node&, TreeScope&);
110 void modifiedStyleSheetCandidateNode(Node&); 110 void modifiedStyleSheetCandidateNode(Node&);
111 void watchedSelectorsChanged(); 111 void watchedSelectorsChanged();
112 void initialViewportChanged(); 112 void initialViewportChanged();
113 void viewportRulesChanged(); 113 void viewportRulesChanged();
114 void importRemoved(); 114 void htmlImportAddedOrRemoved();
115 115
116 void injectAuthorSheet(StyleSheetContents* authorSheet); 116 void injectAuthorSheet(StyleSheetContents* authorSheet);
117 CSSStyleSheet& ensureInspectorStyleSheet(); 117 CSSStyleSheet& ensureInspectorStyleSheet();
118 RuleSet* watchedSelectorsRuleSet() { 118 RuleSet* watchedSelectorsRuleSet() {
119 return m_globalRuleSet.watchedSelectorsRuleSet(); 119 return m_globalRuleSet.watchedSelectorsRuleSet();
120 } 120 }
121 121
122 RuleSet* ruleSetForSheet(CSSStyleSheet&); 122 RuleSet* ruleSetForSheet(CSSStyleSheet&);
123 void mediaQueryAffectingValueChanged(); 123 void mediaQueryAffectingValueChanged();
124 void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector); 124 void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector);
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 381
382 std::unique_ptr<StyleResolverStats> m_styleResolverStats; 382 std::unique_ptr<StyleResolverStats> m_styleResolverStats;
383 unsigned m_styleForElementCount = 0; 383 unsigned m_styleForElementCount = 0;
384 384
385 friend class StyleEngineTest; 385 friend class StyleEngineTest;
386 }; 386 };
387 387
388 } // namespace blink 388 } // namespace blink
389 389
390 #endif 390 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698