summaryrefslogtreecommitdiff
path: root/Source/WebCore/rendering/ExclusionShape.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2012-10-23 10:25:11 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2012-10-23 10:25:11 +0200
commit5ea819f80c6840c492386bfafbffb059c7e2091f (patch)
tree42ad0b1d82eff090d14278a088ea0f4840a0f938 /Source/WebCore/rendering/ExclusionShape.h
parent43a42f108af6bcbd91f2672731c3047c26213af1 (diff)
downloadqtwebkit-5ea819f80c6840c492386bfafbffb059c7e2091f.tar.gz
Imported WebKit commit 20434eb8eb95065803473139d8794e98a7672f75 (http://svn.webkit.org/repository/webkit/trunk@132191)
New snapshot that should fix build with latest qtbase and the QPlastiqueStyle removal
Diffstat (limited to 'Source/WebCore/rendering/ExclusionShape.h')
-rw-r--r--Source/WebCore/rendering/ExclusionShape.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/Source/WebCore/rendering/ExclusionShape.h b/Source/WebCore/rendering/ExclusionShape.h
index a75ab70e8..075c002c7 100644
--- a/Source/WebCore/rendering/ExclusionShape.h
+++ b/Source/WebCore/rendering/ExclusionShape.h
@@ -39,14 +39,14 @@
namespace WebCore {
struct LineSegment {
- float logicalLeft;
- float logicalRight;
-
LineSegment(float logicalLeft, float logicalRight)
: logicalLeft(logicalLeft)
, logicalRight(logicalRight)
{
}
+
+ float logicalLeft;
+ float logicalRight;
};
typedef Vector<LineSegment> SegmentList;
@@ -64,14 +64,13 @@ public:
virtual ~ExclusionShape() { }
virtual FloatRect shapeLogicalBoundingBox() const = 0;
- virtual FloatRect shapeBoundingBox() const { return m_boundingBox; }
- virtual void getIncludedIntervals(float logicalTop, float logicalBottom, SegmentList&) const = 0;
- virtual void getExcludedIntervals(float logicalTop, float logicalBottom, SegmentList&) const = 0;
virtual bool isEmpty() const = 0;
+ virtual void getIncludedIntervals(float logicalTop, float logicalHeight, SegmentList&) const = 0;
+ virtual void getExcludedIntervals(float logicalTop, float logicalHeight, SegmentList&) const = 0;
protected:
- float minYForLogicalLine(float logicalTop, float logicalBottom) const { return (m_writingMode == RightToLeftWritingMode) ? m_logicalBoxHeight - logicalBottom : logicalTop; }
- float maxYForLogicalLine(float logicalTop, float logicalBottom) const { return (m_writingMode == RightToLeftWritingMode) ? m_logicalBoxHeight - logicalTop : logicalBottom; }
+ float minYForLogicalLine(float logicalTop, float logicalHeight) const { return (m_writingMode == RightToLeftWritingMode) ? m_logicalBoxHeight - logicalTop - logicalHeight : logicalTop; }
+ float maxYForLogicalLine(float logicalTop, float logicalHeight) const { return (m_writingMode == RightToLeftWritingMode) ? m_logicalBoxHeight - logicalTop : logicalTop + logicalHeight; }
FloatRect internalToLogicalBoundingBox(FloatRect r) const { return (m_writingMode == RightToLeftWritingMode) ? FloatRect(r.x(), m_logicalBoxHeight - r.maxY(), r.width(), r.height()) : r; }
private: