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) 2013 Google Inc. All rights reserved. | 9 * Copyright (C) 2013 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "core/dom/Element.h" | 34 #include "core/dom/Element.h" |
35 #include "core/dom/StyleSheetCollections.h" | 35 #include "core/dom/StyleSheetCollections.h" |
36 #include "core/dom/shadow/ShadowRoot.h" | 36 #include "core/dom/shadow/ShadowRoot.h" |
37 #include "core/html/HTMLStyleElement.h" | 37 #include "core/html/HTMLStyleElement.h" |
38 #include "core/page/Settings.h" | 38 #include "core/page/Settings.h" |
39 | 39 |
40 namespace WebCore { | 40 namespace WebCore { |
41 | 41 |
42 using namespace HTMLNames; | 42 using namespace HTMLNames; |
43 | 43 |
44 ShadowTreeStyleSheetCollection::ShadowTreeStyleSheetCollection(ShadowRoot* shado
wRoot) | 44 ShadowTreeStyleSheetCollection::ShadowTreeStyleSheetCollection(ShadowRoot& shado
wRoot) |
45 : StyleSheetCollection(shadowRoot) | 45 : StyleSheetCollection(shadowRoot) |
46 { | 46 { |
47 } | 47 } |
48 | 48 |
49 void ShadowTreeStyleSheetCollection::collectStyleSheets(StyleSheetCollections* c
ollections, Vector<RefPtr<StyleSheet> >& styleSheets, Vector<RefPtr<CSSStyleShee
t> >& activeSheets) | 49 void ShadowTreeStyleSheetCollection::collectStyleSheets(StyleSheetCollections* c
ollections, Vector<RefPtr<StyleSheet> >& styleSheets, Vector<RefPtr<CSSStyleShee
t> >& activeSheets) |
50 { | 50 { |
51 if (document()->settings() && !document()->settings()->authorAndUserStylesEn
abled()) | 51 if (document()->settings() && !document()->settings()->authorAndUserStylesEn
abled()) |
52 return; | 52 return; |
53 | 53 |
54 DocumentOrderedList::iterator begin = m_styleSheetCandidateNodes.begin(); | 54 DocumentOrderedList::iterator begin = m_styleSheetCandidateNodes.begin(); |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 } | 123 } |
124 m_scopingNodesForStyleScoped.didRemoveScopingNodes(); | 124 m_scopingNodesForStyleScoped.didRemoveScopingNodes(); |
125 m_activeAuthorStyleSheets.swap(activeCSSStyleSheets); | 125 m_activeAuthorStyleSheets.swap(activeCSSStyleSheets); |
126 m_styleSheetsForStyleSheetList.swap(styleSheets); | 126 m_styleSheetsForStyleSheetList.swap(styleSheets); |
127 updateUsesRemUnits(); | 127 updateUsesRemUnits(); |
128 | 128 |
129 return requiresFullStyleRecalc; | 129 return requiresFullStyleRecalc; |
130 } | 130 } |
131 | 131 |
132 } | 132 } |
OLD | NEW |