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

Side by Side Diff: Source/core/css/StyleInvalidationAnalysis.cpp

Issue 15387004: Remove some unused includes from core/css and core/dom (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 years, 7 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
« no previous file with comments | « Source/core/css/SelectorChecker.cpp ('k') | Source/core/css/StylePropertySet.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 14 matching lines...) Expand all
25 25
26 #include "config.h" 26 #include "config.h"
27 #include "core/css/StyleInvalidationAnalysis.h" 27 #include "core/css/StyleInvalidationAnalysis.h"
28 28
29 #include "core/css/CSSSelectorList.h" 29 #include "core/css/CSSSelectorList.h"
30 #include "core/css/StyleRuleImport.h" 30 #include "core/css/StyleRuleImport.h"
31 #include "core/css/StyleSheetContents.h" 31 #include "core/css/StyleSheetContents.h"
32 #include "core/dom/ContainerNode.h" 32 #include "core/dom/ContainerNode.h"
33 #include "core/dom/Document.h" 33 #include "core/dom/Document.h"
34 #include "core/dom/NodeTraversal.h" 34 #include "core/dom/NodeTraversal.h"
35 #include "core/dom/StyledElement.h"
36 #include "core/dom/shadow/ShadowRoot.h" 35 #include "core/dom/shadow/ShadowRoot.h"
37 #include "core/html/HTMLStyleElement.h" 36 #include "core/html/HTMLStyleElement.h"
38 37
39 namespace WebCore { 38 namespace WebCore {
40 39
41 StyleInvalidationAnalysis::StyleInvalidationAnalysis(const Vector<StyleSheetCont ents*>& sheets) 40 StyleInvalidationAnalysis::StyleInvalidationAnalysis(const Vector<StyleSheetCont ents*>& sheets)
42 : m_dirtiesAllStyle(false) 41 : m_dirtiesAllStyle(false)
43 { 42 {
44 for (unsigned i = 0; i < sheets.size() && !m_dirtiesAllStyle; ++i) 43 for (unsigned i = 0; i < sheets.size() && !m_dirtiesAllStyle; ++i)
45 analyzeStyleSheet(sheets[i]); 44 analyzeStyleSheet(sheets[i]);
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 element->setNeedsStyleRecalc(); 172 element->setNeedsStyleRecalc();
174 // The whole subtree is now invalidated, we can skip to the next sib ling. 173 // The whole subtree is now invalidated, we can skip to the next sib ling.
175 element = ElementTraversal::nextSkippingChildren(element); 174 element = ElementTraversal::nextSkippingChildren(element);
176 continue; 175 continue;
177 } 176 }
178 element = ElementTraversal::next(element); 177 element = ElementTraversal::next(element);
179 } 178 }
180 } 179 }
181 180
182 } 181 }
OLDNEW
« no previous file with comments | « Source/core/css/SelectorChecker.cpp ('k') | Source/core/css/StylePropertySet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698