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

Unified Diff: sky/engine/core/rendering/RenderLayerScrollableArea.cpp

Issue 684393002: Remove flipForWritingMode. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « sky/engine/core/rendering/RenderLayerClipper.cpp ('k') | sky/engine/core/rendering/RenderLineBoxList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/RenderLayerScrollableArea.cpp
diff --git a/sky/engine/core/rendering/RenderLayerScrollableArea.cpp b/sky/engine/core/rendering/RenderLayerScrollableArea.cpp
index a56be11c85d027c84c0019c4eac4e2eb84a88128..245377839d7967a7867f96651a742da51d344e02 100644
--- a/sky/engine/core/rendering/RenderLayerScrollableArea.cpp
+++ b/sky/engine/core/rendering/RenderLayerScrollableArea.cpp
@@ -190,10 +190,7 @@ void RenderLayerScrollableArea::invalidateScrollbarRect(Scrollbar* scrollbar, co
if (scrollRect.isEmpty())
return;
- LayoutRect paintInvalidationRect = scrollRect;
- box().flipForWritingMode(paintInvalidationRect);
-
- IntRect intRect = pixelSnappedIntRect(paintInvalidationRect);
+ IntRect intRect = pixelSnappedIntRect(scrollRect);
if (box().frameView()->isInPerformLayout())
addScrollbarDamage(scrollbar, intRect);
@@ -509,7 +506,6 @@ void RenderLayerScrollableArea::computeScrollDimensions()
m_scrollDimensionsDirty = false;
m_overflowRect = box().layoutOverflowRect();
- box().flipForWritingMode(m_overflowRect);
int scrollableLeftOverflow = m_overflowRect.x() - box().borderLeft() - (box().style()->shouldPlaceBlockDirectionScrollbarOnLogicalLeft() ? box().verticalScrollbarWidth() : 0);
int scrollableTopOverflow = m_overflowRect.y() - box().borderTop();
« no previous file with comments | « sky/engine/core/rendering/RenderLayerClipper.cpp ('k') | sky/engine/core/rendering/RenderLineBoxList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698