| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 static PassOwnPtr<StyleEngine> create(Document& document) { return adoptPtr(
new StyleEngine(document)); } | 69 static PassOwnPtr<StyleEngine> create(Document& document) { return adoptPtr(
new StyleEngine(document)); } |
| 70 | 70 |
| 71 ~StyleEngine(); | 71 ~StyleEngine(); |
| 72 | 72 |
| 73 #if !ENABLE(OILPAN) | 73 #if !ENABLE(OILPAN) |
| 74 void detachFromDocument(); | 74 void detachFromDocument(); |
| 75 #endif | 75 #endif |
| 76 | 76 |
| 77 const Vector<RefPtr<StyleSheet> >& styleSheetsForStyleSheetList(TreeScope&); | 77 const Vector<RefPtr<StyleSheet> >& styleSheetsForStyleSheetList(TreeScope&); |
| 78 const Vector<RefPtr<CSSStyleSheet> >& activeAuthorStyleSheets() const; | |
| 79 | 78 |
| 80 const Vector<RefPtr<CSSStyleSheet> >& documentAuthorStyleSheets() const { re
turn m_authorStyleSheets; } | 79 const Vector<RefPtr<CSSStyleSheet> >& documentAuthorStyleSheets() const { re
turn m_authorStyleSheets; } |
| 81 | 80 |
| 82 const Vector<RefPtr<CSSStyleSheet> > activeStyleSheetsForInspector() const; | |
| 83 | |
| 84 void modifiedStyleSheet(StyleSheet*); | 81 void modifiedStyleSheet(StyleSheet*); |
| 85 void addStyleSheetCandidateNode(Node*, bool createdByParser); | 82 void addStyleSheetCandidateNode(Node*, bool createdByParser); |
| 86 void removeStyleSheetCandidateNode(Node*); | |
| 87 void removeStyleSheetCandidateNode(Node*, ContainerNode* scopingNode, TreeSc
ope&); | 83 void removeStyleSheetCandidateNode(Node*, ContainerNode* scopingNode, TreeSc
ope&); |
| 88 void modifiedStyleSheetCandidateNode(Node*); | |
| 89 | 84 |
| 90 void clearMediaQueryRuleSetStyleSheets(); | 85 void clearMediaQueryRuleSetStyleSheets(); |
| 91 void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector)
; | |
| 92 void updateActiveStyleSheets(StyleResolverUpdateMode); | 86 void updateActiveStyleSheets(StyleResolverUpdateMode); |
| 93 | 87 |
| 94 bool ignoringPendingStylesheets() const { return m_ignorePendingStylesheets;
} | 88 bool ignoringPendingStylesheets() const { return m_ignorePendingStylesheets;
} |
| 95 | 89 |
| 96 // FIXME(sky): Remove this and ::first-line. | 90 // FIXME(sky): Remove this and ::first-line. |
| 97 bool usesFirstLineRules() const { return false; } | 91 bool usesFirstLineRules() const { return false; } |
| 98 | 92 |
| 99 bool usesRemUnits() const { return m_usesRemUnits; } | 93 bool usesRemUnits() const { return m_usesRemUnits; } |
| 100 void setUsesRemUnit(bool b) { m_usesRemUnits = b; } | 94 void setUsesRemUnit(bool b) { m_usesRemUnits = b; } |
| 101 | 95 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 | 194 |
| 201 RefPtr<CSSFontSelector> m_fontSelector; | 195 RefPtr<CSSFontSelector> m_fontSelector; |
| 202 | 196 |
| 203 HashMap<AtomicString, RawPtr<StyleSheetContents> > m_textToSheetCache; | 197 HashMap<AtomicString, RawPtr<StyleSheetContents> > m_textToSheetCache; |
| 204 HashMap<RawPtr<StyleSheetContents>, AtomicString> m_sheetToTextCache; | 198 HashMap<RawPtr<StyleSheetContents>, AtomicString> m_sheetToTextCache; |
| 205 }; | 199 }; |
| 206 | 200 |
| 207 } | 201 } |
| 208 | 202 |
| 209 #endif // SKY_ENGINE_CORE_DOM_STYLEENGINE_H_ | 203 #endif // SKY_ENGINE_CORE_DOM_STYLEENGINE_H_ |
| OLD | NEW |