diff options
author | Ben Murdoch <benm@google.com> | 2011-05-24 11:24:40 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2011-06-02 09:53:15 +0100 |
commit | 81bc750723a18f21cd17d1b173cd2a4dda9cea6e (patch) | |
tree | 7a9e5ed86ff429fd347a25153107221543909b19 /Source/WebCore/rendering/RenderBox.h | |
parent | 94088a6d336c1dd80a1e734af51e96abcbb689a7 (diff) | |
download | external_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.zip external_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.tar.gz external_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.tar.bz2 |
Merge WebKit at r80534: Intial merge by Git
Change-Id: Ia7a83357124c9e1cdb1debf55d9661ec0bd09a61
Diffstat (limited to 'Source/WebCore/rendering/RenderBox.h')
-rw-r--r-- | Source/WebCore/rendering/RenderBox.h | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/Source/WebCore/rendering/RenderBox.h b/Source/WebCore/rendering/RenderBox.h index 7241ed1..f0bd30d 100644 --- a/Source/WebCore/rendering/RenderBox.h +++ b/Source/WebCore/rendering/RenderBox.h @@ -176,7 +176,9 @@ public: int clientTop() const { return borderTop(); } int clientWidth() const; int clientHeight() const; - int clientLogicalBottom() const { return borderBefore() + (style()->isHorizontalWritingMode() ? clientHeight() : clientWidth()); } + int clientLogicalWidth() const { return style()->isHorizontalWritingMode() ? clientWidth() : clientHeight(); } + int clientLogicalHeight() const { return style()->isHorizontalWritingMode() ? clientHeight() : clientWidth(); } + int clientLogicalBottom() const { return borderBefore() + clientLogicalHeight(); } IntRect clientBoxRect() const { return IntRect(clientLeft(), clientTop(), clientWidth(), clientHeight()); } // scrollWidth/scrollHeight will be the same as clientWidth/clientHeight unless the @@ -385,6 +387,8 @@ public: IntPoint flipForWritingModeIncludingColumns(const IntPoint&) const; IntSize flipForWritingMode(const IntSize&) const; void flipForWritingMode(IntRect&) const; + FloatPoint flipForWritingMode(const FloatPoint&) const; + void flipForWritingMode(FloatRect&) const; IntSize locationOffsetIncludingFlipping() const; IntRect logicalVisualOverflowRectForPropagation(RenderStyle*) const; @@ -426,18 +430,18 @@ private: // Returns true if we did a full repaint bool repaintLayerRectsForImage(WrappedImagePtr image, const FillLayer* layers, bool drawingBackground); - int containingBlockWidthForPositioned(const RenderBoxModelObject* containingBlock) const; - int containingBlockHeightForPositioned(const RenderBoxModelObject* containingBlock) const; + int containingBlockLogicalWidthForPositioned(const RenderBoxModelObject* containingBlock, bool checkForPerpendicularWritingMode = true) const; + int containingBlockLogicalHeightForPositioned(const RenderBoxModelObject* containingBlock, bool checkForPerpendicularWritingMode = true) const; void computePositionedLogicalHeight(); - void computePositionedLogicalWidthUsing(Length width, const RenderBoxModelObject* cb, TextDirection containerDirection, - int containerWidth, int bordersPlusPadding, - Length left, Length right, Length marginLeft, Length marginRight, - int& widthValue, int& marginLeftValue, int& marginRightValue, int& xPos); - void computePositionedLogicalHeightUsing(Length height, const RenderBoxModelObject* cb, - int containerHeight, int bordersPlusPadding, - Length top, Length bottom, Length marginTop, Length marginBottom, - int& heightValue, int& marginTopValue, int& marginBottomValue, int& yPos); + void computePositionedLogicalWidthUsing(Length logicalWidth, const RenderBoxModelObject* containerBlock, TextDirection containerDirection, + int containerLogicalWidth, int bordersPlusPadding, + Length logicalLeft, Length logicalRight, Length marginLogicalLeft, Length marginLogicalRight, + int& logicalWidthValue, int& marginLogicalLeftValue, int& marginLogicalRightValue, int& logicalLeftPos); + void computePositionedLogicalHeightUsing(Length logicalHeight, const RenderBoxModelObject* containerBlock, + int containerLogicalHeight, int bordersPlusPadding, + Length logicalTop, Length logicalBottom, Length marginLogicalTop, Length marginLogicalBottom, + int& logicalHeightValue, int& marginLogicalTopValue, int& marginLogicalBottomValue, int& logicalTopPos); void computePositionedLogicalHeightReplaced(); void computePositionedLogicalWidthReplaced(); |