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

Unified Diff: Source/core/page/PrintContext.cpp

Issue 669803002: Optimize for horizontal writing mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed for horizontal-bt 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 | « Source/core/page/EventHandler.cpp ('k') | Source/core/paint/BlockPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/PrintContext.cpp
diff --git a/Source/core/page/PrintContext.cpp b/Source/core/page/PrintContext.cpp
index 34da6e09752c82a9010d74d5c3db871c7da89033..277f0ebb6a362c4020f93fe76b3cde8607c99c18 100644
--- a/Source/core/page/PrintContext.cpp
+++ b/Source/core/page/PrintContext.cpp
@@ -113,7 +113,7 @@ void PrintContext::computePageRectsWithPageSizeInternal(const FloatSize& pageSiz
int blockDirectionStart;
int blockDirectionEnd;
if (isHorizontal) {
- if (view->style()->isFlippedBlocksWritingMode()) {
+ if (view->style()->slowIsFlippedBlocksWritingMode()) {
blockDirectionStart = docRect.maxY();
blockDirectionEnd = docRect.y();
} else {
@@ -123,7 +123,7 @@ void PrintContext::computePageRectsWithPageSizeInternal(const FloatSize& pageSiz
inlineDirectionStart = view->style()->isLeftToRightDirection() ? docRect.x() : docRect.maxX();
inlineDirectionEnd = view->style()->isLeftToRightDirection() ? docRect.maxX() : docRect.x();
} else {
- if (view->style()->isFlippedBlocksWritingMode()) {
+ if (view->style()->slowIsFlippedBlocksWritingMode()) {
pdr. 2014/10/22 18:42:54 (We'll be doing these in a followup)
blockDirectionStart = docRect.maxX();
blockDirectionEnd = docRect.x();
} else {
« no previous file with comments | « Source/core/page/EventHandler.cpp ('k') | Source/core/paint/BlockPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698