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

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

Issue 347643002: Reduce forward declarations in core/dom (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase against ToT Created 6 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 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 16 matching lines...) Expand all
27 #ifndef ComposedTreeWalker_h 27 #ifndef ComposedTreeWalker_h
28 #define ComposedTreeWalker_h 28 #define ComposedTreeWalker_h
29 29
30 #include "core/dom/NodeRenderingTraversal.h" 30 #include "core/dom/NodeRenderingTraversal.h"
31 #include "core/dom/shadow/InsertionPoint.h" 31 #include "core/dom/shadow/InsertionPoint.h"
32 #include "core/dom/shadow/ShadowRoot.h" 32 #include "core/dom/shadow/ShadowRoot.h"
33 33
34 namespace WebCore { 34 namespace WebCore {
35 35
36 class Node; 36 class Node;
37 class ShadowRoot;
38 37
39 // FIXME: Make some functions inline to optimise the performance. 38 // FIXME: Make some functions inline to optimise the performance.
40 // https://bugs.webkit.org/show_bug.cgi?id=82702 39 // https://bugs.webkit.org/show_bug.cgi?id=82702
41 class ComposedTreeWalker { 40 class ComposedTreeWalker {
42 STACK_ALLOCATED(); 41 STACK_ALLOCATED();
43 public: 42 public:
44 typedef NodeRenderingTraversal::ParentDetails ParentTraversalDetails; 43 typedef NodeRenderingTraversal::ParentDetails ParentTraversalDetails;
45 44
46 enum StartPolicy { 45 enum StartPolicy {
47 CanStartFromShadowBoundary, 46 CanStartFromShadowBoundary,
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 206
208 inline Node* ComposedTreeWalker::traverseLastChild(const Node* node) const 207 inline Node* ComposedTreeWalker::traverseLastChild(const Node* node) const
209 { 208 {
210 ASSERT(node); 209 ASSERT(node);
211 return traverseChild(node, TraversalDirectionBackward); 210 return traverseChild(node, TraversalDirectionBackward);
212 } 211 }
213 212
214 } // namespace 213 } // namespace
215 214
216 #endif 215 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/custom/CustomElementRegistrationContext.h ('k') | Source/core/dom/shadow/SelectRuleFeatureSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698