| 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 12 matching lines...) Expand all Loading... |
| 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 24 * Boston, MA 02110-1301, USA. | 24 * Boston, MA 02110-1301, USA. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #include "core/dom/DocumentStyleSheetCollection.h" | 27 #include "core/dom/DocumentStyleSheetCollection.h" |
| 28 | 28 |
| 29 #include "core/css/resolver/StyleResolver.h" | 29 #include "core/css/resolver/StyleResolver.h" |
| 30 #include "core/dom/Document.h" | 30 #include "core/dom/Document.h" |
| 31 #include "core/dom/DocumentStyleSheetCollector.h" | 31 #include "core/dom/DocumentStyleSheetCollector.h" |
| 32 #include "core/dom/ProcessingInstruction.h" | 32 #include "core/dom/ProcessingInstruction.h" |
| 33 #include "core/dom/StyleChangeReason.h" |
| 33 #include "core/dom/StyleEngine.h" | 34 #include "core/dom/StyleEngine.h" |
| 34 #include "core/dom/StyleSheetCandidate.h" | 35 #include "core/dom/StyleSheetCandidate.h" |
| 35 #include "platform/RuntimeEnabledFeatures.h" | 36 #include "platform/RuntimeEnabledFeatures.h" |
| 36 | 37 |
| 37 namespace blink { | 38 namespace blink { |
| 38 | 39 |
| 39 DocumentStyleSheetCollection::DocumentStyleSheetCollection(TreeScope& treeScope) | 40 DocumentStyleSheetCollection::DocumentStyleSheetCollection(TreeScope& treeScope) |
| 40 : TreeScopeStyleSheetCollection(treeScope) | 41 : TreeScopeStyleSheetCollection(treeScope) |
| 41 { | 42 { |
| 42 ASSERT(treeScope.rootNode() == treeScope.rootNode().document()); | 43 ASSERT(treeScope.rootNode() == treeScope.rootNode().document()); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 styleResolver->lazyAppendAuthorStyleSheets(m_activeAuthorStyleSheets
.size(), collection.activeAuthorStyleSheets()); | 114 styleResolver->lazyAppendAuthorStyleSheets(m_activeAuthorStyleSheets
.size(), collection.activeAuthorStyleSheets()); |
| 114 } | 115 } |
| 115 } | 116 } |
| 116 if (change.requiresFullStyleRecalc) | 117 if (change.requiresFullStyleRecalc) |
| 117 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForT
racing::create(StyleChangeReason::ActiveStylesheetsUpdate)); | 118 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForT
racing::create(StyleChangeReason::ActiveStylesheetsUpdate)); |
| 118 | 119 |
| 119 collection.swap(*this); | 120 collection.swap(*this); |
| 120 } | 121 } |
| 121 | 122 |
| 122 } // namespace blink | 123 } // namespace blink |
| OLD | NEW |