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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 bool needsUpdateActiveStylesheetsOnStyleRecalc() const { return m_needsUpdat
eActiveStylesheetsOnStyleRecalc; } | 109 bool needsUpdateActiveStylesheetsOnStyleRecalc() const { return m_needsUpdat
eActiveStylesheetsOnStyleRecalc; } |
110 | 110 |
111 void clearMediaQueryRuleSetStyleSheets(); | 111 void clearMediaQueryRuleSetStyleSheets(); |
112 bool updateActiveStyleSheets(StyleResolverUpdateMode); | 112 bool updateActiveStyleSheets(StyleResolverUpdateMode); |
113 | 113 |
114 String preferredStylesheetSetName() const { return m_preferredStylesheetSetN
ame; } | 114 String preferredStylesheetSetName() const { return m_preferredStylesheetSetN
ame; } |
115 String selectedStylesheetSetName() const { return m_selectedStylesheetSetNam
e; } | 115 String selectedStylesheetSetName() const { return m_selectedStylesheetSetNam
e; } |
116 void setPreferredStylesheetSetName(const String& name) { m_preferredStyleshe
etSetName = name; } | 116 void setPreferredStylesheetSetName(const String& name) { m_preferredStyleshe
etSetName = name; } |
117 void setSelectedStylesheetSetName(const String& name) { m_selectedStylesheet
SetName = name; } | 117 void setSelectedStylesheetSetName(const String& name) { m_selectedStylesheet
SetName = name; } |
118 | 118 |
| 119 void selectStylesheetSetName(const String& name) |
| 120 { |
| 121 setPreferredStylesheetSetName(name); |
| 122 setSelectedStylesheetSetName(name); |
| 123 } |
| 124 |
119 void addPendingSheet(); | 125 void addPendingSheet(); |
120 enum RemovePendingSheetNotificationType { | 126 enum RemovePendingSheetNotificationType { |
121 RemovePendingSheetNotifyImmediately, | 127 RemovePendingSheetNotifyImmediately, |
122 RemovePendingSheetNotifyLater | 128 RemovePendingSheetNotifyLater |
123 }; | 129 }; |
124 void removePendingSheet(Node* styleSheetCandidateNode, RemovePendingSheetNot
ificationType = RemovePendingSheetNotifyImmediately); | 130 void removePendingSheet(Node* styleSheetCandidateNode, RemovePendingSheetNot
ificationType = RemovePendingSheetNotifyImmediately); |
125 | 131 |
126 bool hasPendingSheets() const { return m_pendingStylesheets > 0; } | 132 bool hasPendingSheets() const { return m_pendingStylesheets > 0; } |
127 bool haveStylesheetsLoaded() const { return !hasPendingSheets() || m_ignoreP
endingStylesheets; } | 133 bool haveStylesheetsLoaded() const { return !hasPendingSheets() || m_ignoreP
endingStylesheets; } |
128 bool ignoringPendingStylesheets() const { return m_ignorePendingStylesheets;
} | 134 bool ignoringPendingStylesheets() const { return m_ignorePendingStylesheets;
} |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 unsigned m_lastResolverAccessCount; | 246 unsigned m_lastResolverAccessCount; |
241 Timer<StyleEngine> m_resolverThrowawayTimer; | 247 Timer<StyleEngine> m_resolverThrowawayTimer; |
242 OwnPtr<StyleResolver> m_resolver; | 248 OwnPtr<StyleResolver> m_resolver; |
243 | 249 |
244 RefPtr<CSSFontSelector> m_fontSelector; | 250 RefPtr<CSSFontSelector> m_fontSelector; |
245 }; | 251 }; |
246 | 252 |
247 } | 253 } |
248 | 254 |
249 #endif | 255 #endif |
OLD | NEW |