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

Side by Side Diff: Source/core/dom/shadow/ComposedTreeWalker.cpp

Issue 64643009: Remove duplicated headers from core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years 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 /* 2 /*
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 12 matching lines...) Expand all
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28 #include "config.h" 28 #include "config.h"
29 #include "core/dom/shadow/ComposedTreeWalker.h" 29 #include "core/dom/shadow/ComposedTreeWalker.h"
30 30
31 #include "core/dom/Element.h" 31 #include "core/dom/Element.h"
32 #include "core/dom/shadow/ElementShadow.h" 32 #include "core/dom/shadow/ElementShadow.h"
33 #include "core/dom/shadow/InsertionPoint.h"
34 #include "core/html/shadow/HTMLContentElement.h" 33 #include "core/html/shadow/HTMLContentElement.h"
35 #include "core/html/shadow/HTMLShadowElement.h" 34 #include "core/html/shadow/HTMLShadowElement.h"
36 35
37 namespace WebCore { 36 namespace WebCore {
38 37
39 static inline ElementShadow* shadowFor(const Node* node) 38 static inline ElementShadow* shadowFor(const Node* node)
40 { 39 {
41 if (node && node->isElementNode()) 40 if (node && node->isElementNode())
42 return toElement(node)->shadow(); 41 return toElement(node)->shadow();
43 return 0; 42 return 0;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 ShadowRoot* shadowRoot = toShadowRoot(parent); 157 ShadowRoot* shadowRoot = toShadowRoot(parent);
159 ASSERT(!shadowRoot->shadowInsertionPointOfYoungerShadowRoot()); 158 ASSERT(!shadowRoot->shadowInsertionPointOfYoungerShadowRoot());
160 if (!shadowRoot->isYoungest()) 159 if (!shadowRoot->isYoungest())
161 return 0; 160 return 0;
162 if (details) 161 if (details)
163 details->didTraverseShadowRoot(shadowRoot); 162 details->didTraverseShadowRoot(shadowRoot);
164 return shadowRoot->host(); 163 return shadowRoot->host();
165 } 164 }
166 165
167 } // namespace 166 } // namespace
OLDNEW
« no previous file with comments | « Source/core/dom/custom/CustomElementRegistry.cpp ('k') | Source/core/dom/shadow/ElementShadow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698