| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |