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

Unified Diff: Source/core/rendering/shapes/ShapeOutsideInfo.cpp

Issue 669803002: Optimize for horizontal writing mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: w compile fix Created 6 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: Source/core/rendering/shapes/ShapeOutsideInfo.cpp
diff --git a/Source/core/rendering/shapes/ShapeOutsideInfo.cpp b/Source/core/rendering/shapes/ShapeOutsideInfo.cpp
index 135457282bc7153127edf25ac80e2f3d24a0519a..c05ac02f6185038b785706aa0bfabf4d0b548124 100644
--- a/Source/core/rendering/shapes/ShapeOutsideInfo.cpp
+++ b/Source/core/rendering/shapes/ShapeOutsideInfo.cpp
@@ -317,7 +317,7 @@ LayoutRect ShapeOutsideInfo::computedShapePhysicalBoundingBox() const
LayoutRect physicalBoundingBox = computedShape().shapeMarginLogicalBoundingBox();
physicalBoundingBox.setX(physicalBoundingBox.x() + logicalLeftOffset());
- if (m_renderer.style()->isFlippedBlocksWritingMode())
+ if (m_renderer.style()->slowIsFlippedBlocksWritingMode())
physicalBoundingBox.setY(m_renderer.logicalHeight() - physicalBoundingBox.maxY());
else
physicalBoundingBox.setY(physicalBoundingBox.y() + logicalTopOffset());
@@ -333,7 +333,7 @@ LayoutRect ShapeOutsideInfo::computedShapePhysicalBoundingBox() const
FloatPoint ShapeOutsideInfo::shapeToRendererPoint(FloatPoint point) const
{
FloatPoint result = FloatPoint(point.x() + logicalLeftOffset(), point.y() + logicalTopOffset());
- if (m_renderer.style()->isFlippedBlocksWritingMode())
+ if (m_renderer.style()->slowIsFlippedBlocksWritingMode())
result.setY(m_renderer.logicalHeight() - result.y());
if (!m_renderer.style()->isHorizontalWritingMode())
result = result.transposedPoint();

Powered by Google App Engine
This is Rietveld 408576698