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

Unified Diff: third_party/WebKit/Source/core/dom/LayoutTreeBuilderTraversal.h

Issue 2379483002: Use the sibling limit to decide whether to create layout for whitespace (Closed)
Patch Set: Bring patch to head. Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698