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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutScrollbarPart.cpp

Issue 2640143005: Support subpixel layout for borders. (Closed)
Patch Set: Rebaselined tests. Created 3 years, 10 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: third_party/WebKit/Source/core/layout/LayoutScrollbarPart.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutScrollbarPart.cpp b/third_party/WebKit/Source/core/layout/LayoutScrollbarPart.cpp
index 5239ca70fb4d27c5e2944fef05240bcff688565a..0193163eba97af47c42303db5f038133131d0c06 100644
--- a/third_party/WebKit/Source/core/layout/LayoutScrollbarPart.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutScrollbarPart.cpp
@@ -139,10 +139,9 @@ void LayoutScrollbarPart::computeScrollbarWidth() {
// up to date, especially since we are called at style change.
// FIXME: Querying the style's border information doesn't work on table cells
// with collapsing borders.
- int visibleSize = (m_scrollbar->styleSource()->size().width() -
- m_scrollbar->styleSource()->style()->borderLeftWidth() -
- m_scrollbar->styleSource()->style()->borderRightWidth())
- .toInt();
+ int visibleSize = m_scrollbar->styleSource()->size().width() -
+ m_scrollbar->styleSource()->style()->borderLeftWidth() -
+ m_scrollbar->styleSource()->style()->borderRightWidth();
int w = calcScrollbarThicknessUsing(MainOrPreferredSize, style()->width(),
visibleSize);
int minWidth =
@@ -168,10 +167,9 @@ void LayoutScrollbarPart::computeScrollbarHeight() {
// up to date, especially since we are called at style change.
// FIXME: Querying the style's border information doesn't work on table cells
// with collapsing borders.
- int visibleSize = (m_scrollbar->styleSource()->size().height() -
- m_scrollbar->styleSource()->style()->borderTopWidth() -
- m_scrollbar->styleSource()->style()->borderBottomWidth())
- .toInt();
+ int visibleSize = m_scrollbar->styleSource()->size().height() -
+ m_scrollbar->styleSource()->style()->borderTopWidth() -
+ m_scrollbar->styleSource()->style()->borderBottomWidth();
int h = calcScrollbarThicknessUsing(MainOrPreferredSize, style()->height(),
visibleSize);
int minHeight =
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698