Index: third_party/WebKit/Source/core/dom/LayoutTreeBuilderTraversal.h |
diff --git a/third_party/WebKit/Source/core/dom/LayoutTreeBuilderTraversal.h b/third_party/WebKit/Source/core/dom/LayoutTreeBuilderTraversal.h |
index 6d397db775f16bf6095305dd24579511cc985e65..7fb265b2c746ce65c57885d20dd684a6f3c0f53f 100644 |
--- a/third_party/WebKit/Source/core/dom/LayoutTreeBuilderTraversal.h |
+++ b/third_party/WebKit/Source/core/dom/LayoutTreeBuilderTraversal.h |
@@ -30,6 +30,7 @@ |
#include "core/CoreExport.h" |
#include "core/dom/Element.h" |
#include "core/dom/shadow/InsertionPoint.h" |
+#include <cstdint> |
namespace blink { |
@@ -37,6 +38,8 @@ class LayoutObject; |
namespace LayoutTreeBuilderTraversal { |
+const int32_t kTraverseAllSiblings = -2; |
+ |
class ParentDetails { |
STACK_ALLOCATED(); |
@@ -62,8 +65,10 @@ Node* previousSibling(const Node&); |
Node* previous(const Node&, const Node* stayWithin); |
Node* next(const Node&, const Node* stayWithin); |
Node* nextSkippingChildren(const Node&, const Node* stayWithin); |
-LayoutObject* nextSiblingLayoutObject(const Node&); |
-LayoutObject* previousSiblingLayoutObject(const Node&); |
+LayoutObject* nextSiblingLayoutObject(const Node&, |
+ int32_t limit = kTraverseAllSiblings); |
+LayoutObject* previousSiblingLayoutObject(const Node&, |
+ int32_t limit = kTraverseAllSiblings); |
LayoutObject* nextInTopLayer(const Element&); |
inline Element* parentElement(const Node& node) { |