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

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

Issue 2357163002: Setting the link title may change the preferred set. (Closed)
Patch Set: 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 void removeStyleSheetCandidateNode(Node*, TreeScope&); 89 void removeStyleSheetCandidateNode(Node*, TreeScope&);
90 void modifiedStyleSheetCandidateNode(Node*); 90 void modifiedStyleSheetCandidateNode(Node*);
91 void watchedSelectorsChanged(); 91 void watchedSelectorsChanged();
92 92
93 void injectAuthorSheet(StyleSheetContents* authorSheet); 93 void injectAuthorSheet(StyleSheetContents* authorSheet);
94 94
95 void clearMediaQueryRuleSetStyleSheets(); 95 void clearMediaQueryRuleSetStyleSheets();
96 void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector) ; 96 void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector) ;
97 void updateActiveStyleSheets(StyleResolverUpdateMode); 97 void updateActiveStyleSheets(StyleResolverUpdateMode);
98 98
99 enum ActiveSheetsUpdate { DontUpdateActiveSheets, UpdateActiveSheets };
99 String preferredStylesheetSetName() const { return m_preferredStylesheetSetN ame; } 100 String preferredStylesheetSetName() const { return m_preferredStylesheetSetN ame; }
100 String selectedStylesheetSetName() const { return m_selectedStylesheetSetNam e; } 101 String selectedStylesheetSetName() const { return m_selectedStylesheetSetNam e; }
101 void setPreferredStylesheetSetNameIfNotSet(const String&); 102 void setPreferredStylesheetSetNameIfNotSet(const String&, ActiveSheetsUpdate );
102 void setSelectedStylesheetSetName(const String&); 103 void setSelectedStylesheetSetName(const String&);
103 void setHttpDefaultStyle(const String&); 104 void setHttpDefaultStyle(const String&);
104 105
105 void addPendingSheet(StyleEngineContext&); 106 void addPendingSheet(StyleEngineContext&);
106 void removePendingSheet(Node* styleSheetCandidateNode, const StyleEngineCont ext&); 107 void removePendingSheet(Node* styleSheetCandidateNode, const StyleEngineCont ext&);
107 108
108 bool hasPendingScriptBlockingSheets() const { return m_pendingScriptBlocking Stylesheets > 0; } 109 bool hasPendingScriptBlockingSheets() const { return m_pendingScriptBlocking Stylesheets > 0; }
109 bool hasPendingRenderBlockingSheets() const { return m_pendingRenderBlocking Stylesheets > 0; } 110 bool hasPendingRenderBlockingSheets() const { return m_pendingRenderBlocking Stylesheets > 0; }
110 bool haveScriptBlockingStylesheetsLoaded() const { return !hasPendingScriptB lockingSheets() || m_ignorePendingStylesheets; } 111 bool haveScriptBlockingStylesheetsLoaded() const { return !hasPendingScriptB lockingSheets() || m_ignorePendingStylesheets; }
111 bool haveRenderBlockingStylesheetsLoaded() const { return !hasPendingRenderB lockingSheets() || m_ignorePendingStylesheets; } 112 bool haveRenderBlockingStylesheetsLoaded() const { return !hasPendingRenderB lockingSheets() || m_ignorePendingStylesheets; }
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 274
274 std::unique_ptr<StyleResolverStats> m_styleResolverStats; 275 std::unique_ptr<StyleResolverStats> m_styleResolverStats;
275 unsigned m_styleForElementCount = 0; 276 unsigned m_styleForElementCount = 0;
276 277
277 friend class StyleEngineTest; 278 friend class StyleEngineTest;
278 }; 279 };
279 280
280 } // namespace blink 281 } // namespace blink
281 282
282 #endif 283 #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