| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 class StyleEngine final : public CSSFontSelectorClient { | 50 class StyleEngine final : public CSSFontSelectorClient { |
| 51 WTF_MAKE_FAST_ALLOCATED; | 51 WTF_MAKE_FAST_ALLOCATED; |
| 52 public: | 52 public: |
| 53 static PassOwnPtr<StyleEngine> create(Document& document) { return adoptPtr(
new StyleEngine(document)); } | 53 static PassOwnPtr<StyleEngine> create(Document& document) { return adoptPtr(
new StyleEngine(document)); } |
| 54 | 54 |
| 55 ~StyleEngine(); | 55 ~StyleEngine(); |
| 56 | 56 |
| 57 void detachFromDocument(); | 57 void detachFromDocument(); |
| 58 | 58 |
| 59 void addStyleSheetCandidateNode(Node*, bool createdByParser); | 59 void addTreeScope(TreeScope&); |
| 60 void removeStyleSheetCandidateNode(Node*, ContainerNode* scopingNode, TreeSc
ope&); | 60 void removeTreeScope(TreeScope&); |
| 61 | 61 |
| 62 void updateActiveStyleSheets(); | 62 void updateActiveStyleSheets(); |
| 63 | 63 |
| 64 // FIXME(sky): Remove this and ::first-line. | 64 // FIXME(sky): Remove this and ::first-line. |
| 65 bool usesFirstLineRules() const { return false; } | 65 bool usesFirstLineRules() const { return false; } |
| 66 | 66 |
| 67 void appendActiveAuthorStyleSheets(); | 67 void appendActiveAuthorStyleSheets(); |
| 68 | 68 |
| 69 StyleResolver* resolver() const | 69 StyleResolver* resolver() const |
| 70 { | 70 { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 RefPtr<CSSFontSelector> m_fontSelector; | 114 RefPtr<CSSFontSelector> m_fontSelector; |
| 115 | 115 |
| 116 HashMap<AtomicString, StyleSheetContents*> m_textToSheetCache; | 116 HashMap<AtomicString, StyleSheetContents*> m_textToSheetCache; |
| 117 HashMap<StyleSheetContents*, AtomicString> m_sheetToTextCache; | 117 HashMap<StyleSheetContents*, AtomicString> m_sheetToTextCache; |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 } | 120 } |
| 121 | 121 |
| 122 #endif // SKY_ENGINE_CORE_DOM_STYLEENGINE_H_ | 122 #endif // SKY_ENGINE_CORE_DOM_STYLEENGINE_H_ |
| OLD | NEW |