Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: third_party/WebKit/Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp

Issue 1746673002: Node.h #include parsimony. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unrelated change Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 13 matching lines...) Expand all
24 */ 24 */
25 25
26 #include "core/css/invalidation/StyleSheetInvalidationAnalysis.h" 26 #include "core/css/invalidation/StyleSheetInvalidationAnalysis.h"
27 27
28 #include "core/css/CSSSelectorList.h" 28 #include "core/css/CSSSelectorList.h"
29 #include "core/css/StyleRuleImport.h" 29 #include "core/css/StyleRuleImport.h"
30 #include "core/css/StyleSheetContents.h" 30 #include "core/css/StyleSheetContents.h"
31 #include "core/dom/ContainerNode.h" 31 #include "core/dom/ContainerNode.h"
32 #include "core/dom/Document.h" 32 #include "core/dom/Document.h"
33 #include "core/dom/ElementTraversal.h" 33 #include "core/dom/ElementTraversal.h"
34 #include "core/dom/StyleChangeReason.h"
34 #include "core/dom/TreeScope.h" 35 #include "core/dom/TreeScope.h"
35 #include "core/dom/shadow/ShadowRoot.h" 36 #include "core/dom/shadow/ShadowRoot.h"
36 #include "core/html/HTMLStyleElement.h" 37 #include "core/html/HTMLStyleElement.h"
37 38
38 namespace blink { 39 namespace blink {
39 40
40 StyleSheetInvalidationAnalysis::StyleSheetInvalidationAnalysis(const TreeScope& treeScope, const WillBeHeapVector<RawPtrWillBeMember<StyleSheetContents>>& sheet s) 41 StyleSheetInvalidationAnalysis::StyleSheetInvalidationAnalysis(const TreeScope& treeScope, const WillBeHeapVector<RawPtrWillBeMember<StyleSheetContents>>& sheet s)
41 : m_treeScope(&treeScope) 42 : m_treeScope(&treeScope)
42 { 43 {
43 for (unsigned i = 0; i < sheets.size() && !m_dirtiesAllStyle; ++i) 44 for (unsigned i = 0; i < sheets.size() && !m_dirtiesAllStyle; ++i)
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 element->setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonFo rTracing::create(StyleChangeReason::StyleSheetChange)); 174 element->setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonFo rTracing::create(StyleChangeReason::StyleSheetChange));
174 // The whole subtree is now invalidated, we can skip to the next sib ling. 175 // The whole subtree is now invalidated, we can skip to the next sib ling.
175 element = ElementTraversal::nextSkippingChildren(*element); 176 element = ElementTraversal::nextSkippingChildren(*element);
176 continue; 177 continue;
177 } 178 }
178 element = ElementTraversal::next(*element); 179 element = ElementTraversal::next(*element);
179 } 180 }
180 } 181 }
181 182
182 } // namespace blink 183 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698