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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 ShadowTreeStyleSheetCollection::ShadowTreeStyleSheetCollection(ShadowRoot& shado
wRoot) | 43 ShadowTreeStyleSheetCollection::ShadowTreeStyleSheetCollection(ShadowRoot& shado
wRoot) |
44 : TreeScopeStyleSheetCollection(shadowRoot) | 44 : TreeScopeStyleSheetCollection(shadowRoot) |
45 { | 45 { |
46 } | 46 } |
47 | 47 |
48 void ShadowTreeStyleSheetCollection::collectStyleSheets(StyleEngine* engine, Sty
leSheetCollection& collection) | 48 void ShadowTreeStyleSheetCollection::collectStyleSheets(StyleEngine* engine, Sty
leSheetCollection& collection) |
49 { | 49 { |
50 for (Node* n : m_styleSheetCandidateNodes) { | 50 for (Node* n : m_styleSheetCandidateNodes) { |
51 StyleSheetCandidate candidate(*n); | 51 StyleSheetCandidate candidate(*n); |
52 ASSERT(!candidate.isXSL()); | |
53 | 52 |
54 if (!candidate.isCSSStyle()) | 53 if (!candidate.isCSSStyle()) |
55 continue; | 54 continue; |
56 | 55 |
57 StyleSheet* sheet = candidate.sheet(); | 56 StyleSheet* sheet = candidate.sheet(); |
58 if (!sheet) | 57 if (!sheet) |
59 continue; | 58 continue; |
60 | 59 |
61 // FIXME: clarify how PREFERRED or ALTERNATE works in shadow trees. | 60 // FIXME: clarify how PREFERRED or ALTERNATE works in shadow trees. |
62 // Should we set preferred/selected stylesheets name in shadow trees and | 61 // Should we set preferred/selected stylesheets name in shadow trees and |
(...skipping 27 matching lines...) Expand all Loading... |
90 } | 89 } |
91 } | 90 } |
92 if (change.requiresFullStyleRecalc) | 91 if (change.requiresFullStyleRecalc) |
93 toShadowRoot(treeScope().rootNode()).host()->setNeedsStyleRecalc(Subtree
StyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::ActiveStyles
heetsUpdate)); | 92 toShadowRoot(treeScope().rootNode()).host()->setNeedsStyleRecalc(Subtree
StyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::ActiveStyles
heetsUpdate)); |
94 | 93 |
95 collection.swap(*this); | 94 collection.swap(*this); |
96 updateUsesRemUnits(); | 95 updateUsesRemUnits(); |
97 } | 96 } |
98 | 97 |
99 } | 98 } |
OLD | NEW |