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

Side by Side Diff: sky/engine/core/dom/shadow/ComposedTreeWalker.cpp

Issue 1206763002: Really remove config.h (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 /* 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.
11 * * Neither the name of Google Inc. nor the names of its 11 * * Neither the name of Google Inc. nor the names of its
12 * contributors may be used to endorse or promote products derived from 12 * contributors may be used to endorse or promote products derived from
13 * this software without specific prior written permission. 13 * this software without specific prior written permission.
14 * 14 *
15 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 15 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 16 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 17 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 18 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 19 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 20 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
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 "sky/engine/config.h"
29 #include "sky/engine/core/dom/shadow/ComposedTreeWalker.h" 28 #include "sky/engine/core/dom/shadow/ComposedTreeWalker.h"
30 29
31 #include "sky/engine/core/dom/Element.h" 30 #include "sky/engine/core/dom/Element.h"
32 #include "sky/engine/core/dom/shadow/ElementShadow.h" 31 #include "sky/engine/core/dom/shadow/ElementShadow.h"
33 32
34 namespace blink { 33 namespace blink {
35 34
36 static inline ElementShadow* shadowFor(const Node* node) 35 static inline ElementShadow* shadowFor(const Node* node)
37 { 36 {
38 if (node && node->isElementNode()) 37 if (node && node->isElementNode())
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 Node* parent = node->parentNode(); 130 Node* parent = node->parentNode();
132 if (!parent) 131 if (!parent)
133 return 0; 132 return 0;
134 if (!parent->isShadowRoot()) 133 if (!parent->isShadowRoot())
135 return parent; 134 return parent;
136 ShadowRoot* shadowRoot = toShadowRoot(parent); 135 ShadowRoot* shadowRoot = toShadowRoot(parent);
137 return shadowRoot->host(); 136 return shadowRoot->host();
138 } 137 }
139 138
140 } // namespace 139 } // namespace
OLDNEW
« no previous file with comments | « sky/engine/core/dom/custom/custom_element_registry.cc ('k') | sky/engine/core/dom/shadow/ContentDistribution.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698