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

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

Issue 2337193004: Setting the link title may change the preferred set. (Closed)
Patch Set: Rebased 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, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 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) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 void modifiedStyleSheetCandidateNode(Node*); 91 void modifiedStyleSheetCandidateNode(Node*);
92 void watchedSelectorsChanged(); 92 void watchedSelectorsChanged();
93 93
94 void injectAuthorSheet(StyleSheetContents* authorSheet); 94 void injectAuthorSheet(StyleSheetContents* authorSheet);
95 CSSStyleSheet& ensureInspectorStyleSheet(); 95 CSSStyleSheet& ensureInspectorStyleSheet();
96 96
97 void clearMediaQueryRuleSetStyleSheets(); 97 void clearMediaQueryRuleSetStyleSheets();
98 void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector) ; 98 void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector) ;
99 void updateActiveStyleSheets(StyleResolverUpdateMode); 99 void updateActiveStyleSheets(StyleResolverUpdateMode);
100 100
101 enum ActiveSheetsUpdate { DontUpdateActiveSheets, UpdateActiveSheets };
101 String preferredStylesheetSetName() const { return m_preferredStylesheetSetN ame; } 102 String preferredStylesheetSetName() const { return m_preferredStylesheetSetN ame; }
102 String selectedStylesheetSetName() const { return m_selectedStylesheetSetNam e; } 103 String selectedStylesheetSetName() const { return m_selectedStylesheetSetNam e; }
103 void setPreferredStylesheetSetNameIfNotSet(const String&); 104 void setPreferredStylesheetSetNameIfNotSet(const String&, ActiveSheetsUpdate );
104 void setSelectedStylesheetSetName(const String&); 105 void setSelectedStylesheetSetName(const String&);
105 void setHttpDefaultStyle(const String&); 106 void setHttpDefaultStyle(const String&);
106 107
107 void addPendingSheet(StyleEngineContext&); 108 void addPendingSheet(StyleEngineContext&);
108 void removePendingSheet(Node* styleSheetCandidateNode, const StyleEngineCont ext&); 109 void removePendingSheet(Node* styleSheetCandidateNode, const StyleEngineCont ext&);
109 110
110 bool hasPendingScriptBlockingSheets() const { return m_pendingScriptBlocking Stylesheets > 0; } 111 bool hasPendingScriptBlockingSheets() const { return m_pendingScriptBlocking Stylesheets > 0; }
111 bool hasPendingRenderBlockingSheets() const { return m_pendingRenderBlocking Stylesheets > 0; } 112 bool hasPendingRenderBlockingSheets() const { return m_pendingRenderBlocking Stylesheets > 0; }
112 bool haveScriptBlockingStylesheetsLoaded() const { return !hasPendingScriptB lockingSheets() || m_ignorePendingStylesheets; } 113 bool haveScriptBlockingStylesheetsLoaded() const { return !hasPendingScriptB lockingSheets() || m_ignorePendingStylesheets; }
113 bool haveRenderBlockingStylesheetsLoaded() const { return !hasPendingRenderB lockingSheets() || m_ignorePendingStylesheets; } 114 bool haveRenderBlockingStylesheetsLoaded() const { return !hasPendingRenderB lockingSheets() || m_ignorePendingStylesheets; }
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 277
277 std::unique_ptr<StyleResolverStats> m_styleResolverStats; 278 std::unique_ptr<StyleResolverStats> m_styleResolverStats;
278 unsigned m_styleForElementCount = 0; 279 unsigned m_styleForElementCount = 0;
279 280
280 friend class StyleEngineTest; 281 friend class StyleEngineTest;
281 }; 282 };
282 283
283 } // namespace blink 284 } // namespace blink
284 285
285 #endif 286 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ProcessingInstruction.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