| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 explicit TreeScopeStyleSheetCollection(TreeScope&); | 69 explicit TreeScopeStyleSheetCollection(TreeScope&); |
| 70 | 70 |
| 71 Document& document() const { return m_treeScope.document(); } | 71 Document& document() const { return m_treeScope.document(); } |
| 72 | 72 |
| 73 enum StyleResolverUpdateType { | 73 enum StyleResolverUpdateType { |
| 74 Reconstruct, | 74 Reconstruct, |
| 75 Reset, | 75 Reset, |
| 76 Additive | 76 Additive |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 struct StyleSheetChange { | 79 class StyleSheetChange { |
| 80 STACK_ALLOCATED(); |
| 81 public: |
| 80 StyleResolverUpdateType styleResolverUpdateType; | 82 StyleResolverUpdateType styleResolverUpdateType; |
| 81 bool requiresFullStyleRecalc; | 83 bool requiresFullStyleRecalc; |
| 82 Vector<const StyleRuleFontFace*> fontFaceRulesToRemove; | 84 WillBeHeapVector<RawPtrWillBeMember<const StyleRuleFontFace> > fontFaceR
ulesToRemove; |
| 83 | 85 |
| 84 StyleSheetChange() | 86 StyleSheetChange() |
| 85 : styleResolverUpdateType(Reconstruct) | 87 : styleResolverUpdateType(Reconstruct) |
| 86 , requiresFullStyleRecalc(true) { } | 88 , requiresFullStyleRecalc(true) { } |
| 87 }; | 89 }; |
| 88 | 90 |
| 89 void analyzeStyleSheetChange(StyleResolverUpdateMode, const StyleSheetCollec
tion&, StyleSheetChange&); | 91 void analyzeStyleSheetChange(StyleResolverUpdateMode, const StyleSheetCollec
tion&, StyleSheetChange&); |
| 90 void resetAllRuleSetsInTreeScope(StyleResolver*); | 92 void resetAllRuleSetsInTreeScope(StyleResolver*); |
| 91 void updateUsesRemUnits(); | 93 void updateUsesRemUnits(); |
| 92 | 94 |
| 93 private: | 95 private: |
| 94 static StyleResolverUpdateType compareStyleSheets(const Vector<RefPtr<CSSSty
leSheet> >& oldStyleSheets, const Vector<RefPtr<CSSStyleSheet> >& newStylesheets
, Vector<StyleSheetContents*>& addedSheets); | 96 static StyleResolverUpdateType compareStyleSheets(const Vector<RefPtr<CSSSty
leSheet> >& oldStyleSheets, const Vector<RefPtr<CSSStyleSheet> >& newStylesheets
, WillBeHeapVector<RawPtrWillBeMember<StyleSheetContents> >& addedSheets); |
| 95 bool activeLoadingStyleSheetLoaded(const Vector<RefPtr<CSSStyleSheet> >& new
StyleSheets); | 97 bool activeLoadingStyleSheetLoaded(const Vector<RefPtr<CSSStyleSheet> >& new
StyleSheets); |
| 96 | 98 |
| 97 protected: | 99 protected: |
| 98 TreeScope& m_treeScope; | 100 TreeScope& m_treeScope; |
| 99 bool m_hadActiveLoadingStylesheet; | 101 bool m_hadActiveLoadingStylesheet; |
| 100 bool m_usesRemUnits; | 102 bool m_usesRemUnits; |
| 101 | 103 |
| 102 DocumentOrderedList m_styleSheetCandidateNodes; | 104 DocumentOrderedList m_styleSheetCandidateNodes; |
| 103 StyleSheetScopingNodeList m_scopingNodesForStyleScoped; | 105 StyleSheetScopingNodeList m_scopingNodesForStyleScoped; |
| 104 }; | 106 }; |
| 105 | 107 |
| 106 } | 108 } |
| 107 | 109 |
| 108 #endif | 110 #endif |
| 109 | 111 |
| OLD | NEW |