| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |