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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All |
7 * rights reserved. | 7 * rights reserved. |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "core/dom/DocumentStyleSheetCollection.h" | 29 #include "core/dom/DocumentStyleSheetCollection.h" |
30 | 30 |
31 #include "core/css/resolver/StyleResolver.h" | 31 #include "core/css/resolver/StyleResolver.h" |
32 #include "core/css/resolver/ViewportStyleResolver.h" | 32 #include "core/css/resolver/ViewportStyleResolver.h" |
33 #include "core/dom/Document.h" | 33 #include "core/dom/Document.h" |
34 #include "core/dom/DocumentStyleSheetCollector.h" | 34 #include "core/dom/DocumentStyleSheetCollector.h" |
35 #include "core/dom/ProcessingInstruction.h" | 35 #include "core/dom/ProcessingInstruction.h" |
36 #include "core/dom/StyleChangeReason.h" | 36 #include "core/dom/StyleChangeReason.h" |
37 #include "core/dom/StyleEngine.h" | 37 #include "core/dom/StyleEngine.h" |
38 #include "core/dom/StyleSheetCandidate.h" | 38 #include "core/dom/StyleSheetCandidate.h" |
39 #include "platform/RuntimeEnabledFeatures.h" | |
40 | 39 |
41 namespace blink { | 40 namespace blink { |
42 | 41 |
43 DocumentStyleSheetCollection::DocumentStyleSheetCollection(TreeScope& treeScope) | 42 DocumentStyleSheetCollection::DocumentStyleSheetCollection(TreeScope& treeScope) |
44 : TreeScopeStyleSheetCollection(treeScope) { | 43 : TreeScopeStyleSheetCollection(treeScope) { |
45 DCHECK_EQ(treeScope.rootNode(), treeScope.rootNode().document()); | 44 DCHECK_EQ(treeScope.rootNode(), treeScope.rootNode().document()); |
46 } | 45 } |
47 | 46 |
48 void DocumentStyleSheetCollection::collectStyleSheetsFromCandidates( | 47 void DocumentStyleSheetCollection::collectStyleSheetsFromCandidates( |
49 StyleEngine& engine, | 48 StyleEngine& engine, |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 continue; | 142 continue; |
144 if (!candidate.canBeActivated( | 143 if (!candidate.canBeActivated( |
145 document().styleEngine().preferredStylesheetSetName())) | 144 document().styleEngine().preferredStylesheetSetName())) |
146 continue; | 145 continue; |
147 viewportResolver.collectViewportRulesFromAuthorSheet( | 146 viewportResolver.collectViewportRulesFromAuthorSheet( |
148 *toCSSStyleSheet(sheet)); | 147 *toCSSStyleSheet(sheet)); |
149 } | 148 } |
150 } | 149 } |
151 | 150 |
152 } // namespace blink | 151 } // namespace blink |
OLD | NEW |