| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 Document& document() const { return treeScope().document(); } | 64 Document& document() const { return treeScope().document(); } |
| 65 TreeScope& treeScope() const { return *m_treeScope; } | 65 TreeScope& treeScope() const { return *m_treeScope; } |
| 66 | 66 |
| 67 enum StyleResolverUpdateType { | 67 enum StyleResolverUpdateType { |
| 68 Reconstruct, | 68 Reconstruct, |
| 69 Reset, | 69 Reset, |
| 70 Additive | 70 Additive |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 class StyleSheetChange { | |
| 74 STACK_ALLOCATED(); | |
| 75 public: | |
| 76 StyleResolverUpdateType styleResolverUpdateType; | |
| 77 bool requiresFullStyleRecalc; | |
| 78 Vector<RawPtr<const StyleRuleFontFace> > fontFaceRulesToRemove; | |
| 79 | |
| 80 StyleSheetChange() | |
| 81 : styleResolverUpdateType(Reconstruct) | |
| 82 , requiresFullStyleRecalc(true) { } | |
| 83 }; | |
| 84 | |
| 85 void analyzeStyleSheetChange(StyleResolverUpdateMode, const StyleSheetCollec
tion&, StyleSheetChange&); | |
| 86 void updateUsesRemUnits(); | 73 void updateUsesRemUnits(); |
| 87 | 74 |
| 88 private: | |
| 89 static StyleResolverUpdateType compareStyleSheets(const Vector<RefPtr<CSSSty
leSheet> >& oldStyleSheets, const Vector<RefPtr<CSSStyleSheet> >& newStylesheets
, Vector<RawPtr<StyleSheetContents> >& addedSheets); | |
| 90 | |
| 91 protected: | 75 protected: |
| 92 RawPtr<TreeScope> m_treeScope; | 76 RawPtr<TreeScope> m_treeScope; |
| 93 bool m_usesRemUnits; | 77 bool m_usesRemUnits; |
| 94 | 78 |
| 95 DocumentOrderedList m_styleSheetCandidateNodes; | 79 DocumentOrderedList m_styleSheetCandidateNodes; |
| 96 }; | 80 }; |
| 97 | 81 |
| 98 } | 82 } |
| 99 | 83 |
| 100 #endif // SKY_ENGINE_CORE_DOM_TREESCOPESTYLESHEETCOLLECTION_H_ | 84 #endif // SKY_ENGINE_CORE_DOM_TREESCOPESTYLESHEETCOLLECTION_H_ |
| OLD | NEW |