| 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 0c3d5bc85f7e28fafec70f781e9fc2d81d6f5829..1dd61b78b034d7a4bae600daebb20531b27a475a 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutScrollbarPart.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutScrollbarPart.cpp
|
| @@ -125,7 +125,7 @@ void LayoutScrollbarPart::layoutVerticalPart()
|
| static int calcScrollbarThicknessUsing(SizeType sizeType, const Length& length, int containingLength)
|
| {
|
| if (!length.isIntrinsicOrAuto() || (sizeType == MinSize && length.isAuto()))
|
| - return minimumValueForLength(length, LayoutUnit(containingLength));
|
| + return minimumValueForLength(length, LayoutUnit(containingLength)).toInt();
|
| return ScrollbarTheme::theme().scrollbarThickness();
|
| }
|
|
|
| @@ -135,7 +135,7 @@ void LayoutScrollbarPart::computeScrollbarWidth()
|
| return;
|
| // FIXME: We are querying layout information but nothing guarantees that it's 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->owningLayoutObject()->size().width() - m_scrollbar->owningLayoutObject()->style()->borderLeftWidth() - m_scrollbar->owningLayoutObject()->style()->borderRightWidth();
|
| + int visibleSize = (m_scrollbar->owningLayoutObject()->size().width() - m_scrollbar->owningLayoutObject()->style()->borderLeftWidth() - m_scrollbar->owningLayoutObject()->style()->borderRightWidth()).toInt();
|
| int w = calcScrollbarThicknessUsing(MainOrPreferredSize, style()->width(), visibleSize);
|
| int minWidth = calcScrollbarThicknessUsing(MinSize, style()->minWidth(), visibleSize);
|
| int maxWidth = style()->maxWidth().isMaxSizeNone() ? w : calcScrollbarThicknessUsing(MaxSize, style()->maxWidth(), visibleSize);
|
| @@ -152,7 +152,7 @@ void LayoutScrollbarPart::computeScrollbarHeight()
|
| return;
|
| // FIXME: We are querying layout information but nothing guarantees that it's 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->owningLayoutObject()->size().height() - m_scrollbar->owningLayoutObject()->style()->borderTopWidth() - m_scrollbar->owningLayoutObject()->style()->borderBottomWidth();
|
| + int visibleSize = (m_scrollbar->owningLayoutObject()->size().height() - m_scrollbar->owningLayoutObject()->style()->borderTopWidth() - m_scrollbar->owningLayoutObject()->style()->borderBottomWidth()).toInt();
|
| int h = calcScrollbarThicknessUsing(MainOrPreferredSize, style()->height(), visibleSize);
|
| int minHeight = calcScrollbarThicknessUsing(MinSize, style()->minHeight(), visibleSize);
|
| int maxHeight = style()->maxHeight().isMaxSizeNone() ? h : calcScrollbarThicknessUsing(MaxSize, style()->maxHeight(), visibleSize);
|
|
|