Index: Source/core/rendering/RenderBox.h |
diff --git a/Source/core/rendering/RenderBox.h b/Source/core/rendering/RenderBox.h |
index 0dc27147f21e9d0e97c9cd9a70a68b0612504eb4..c9f7b5845a26dd10fa3950f577d41b7f10b1f88a 100644 |
--- a/Source/core/rendering/RenderBox.h |
+++ b/Source/core/rendering/RenderBox.h |
@@ -183,7 +183,9 @@ public: |
// Use this with caution! No type checking is done! |
RenderBox* previousSiblingBox() const; |
+ RenderBox* previousInFlowSiblingBox() const; |
RenderBox* nextSiblingBox() const; |
+ RenderBox* nextInFlowSiblingBox() const; |
RenderBox* parentBox() const; |
bool canResize() const; |
@@ -349,6 +351,14 @@ public: |
void clearContainingBlockOverrideSize(); |
void clearOverrideContainingBlockContentLogicalHeight(); |
+ LayoutUnit extraInlineOffset() const; |
+ LayoutUnit extraBlockOffset() const; |
+ bool hasExtraInlineOffset() const; |
+ bool hasExtraBlockOffset() const; |
+ void setExtraInlineOffset(LayoutUnit inlineOffest); |
+ void setExtraBlockOffset(LayoutUnit blockOffest); |
+ void clearExtraInlineAndBlockOffests(); |
+ |
virtual LayoutSize offsetFromContainer(const RenderObject*, const LayoutPoint&, bool* offsetDependsOnPoint = 0) const override; |
LayoutUnit adjustBorderBoxLogicalWidthForBoxSizing(LayoutUnit width) const; |
@@ -774,11 +784,27 @@ inline RenderBox* RenderBox::previousSiblingBox() const |
return toRenderBox(previousSibling()); |
} |
+inline RenderBox* RenderBox::previousInFlowSiblingBox() const |
+{ |
+ RenderBox* previous = previousSiblingBox(); |
+ while (previous && previous->isOutOfFlowPositioned()) |
+ previous = previous->previousSiblingBox(); |
+ return previous; |
+} |
+ |
inline RenderBox* RenderBox::nextSiblingBox() const |
{ |
return toRenderBox(nextSibling()); |
} |
+inline RenderBox* RenderBox::nextInFlowSiblingBox() const |
+{ |
+ RenderBox* next = nextSiblingBox(); |
+ while (next && next->isOutOfFlowPositioned()) |
+ next = next->nextSiblingBox(); |
+ return next; |
+} |
+ |
inline RenderBox* RenderBox::parentBox() const |
{ |
return toRenderBox(parent()); |