| Index: third_party/WebKit/Source/core/paint/FieldsetPainter.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/FieldsetPainter.cpp b/third_party/WebKit/Source/core/paint/FieldsetPainter.cpp
|
| index 4d6a4c66bb2135d4f81946de56c8d2747e869ce7..bd800348676e096c20e3f3eb8a0a3850fd31ffac 100644
|
| --- a/third_party/WebKit/Source/core/paint/FieldsetPainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/FieldsetPainter.cpp
|
| @@ -84,13 +84,13 @@ void FieldsetPainter::paintMask(const PaintInfo& paintInfo, const LayoutPoint& p
|
| // cases the legend is embedded in the right and bottom borders respectively.
|
| // https://bugs.webkit.org/show_bug.cgi?id=47236
|
| if (m_layoutFieldset.style()->isHorizontalWritingMode()) {
|
| - LayoutUnit yOff = (legend->location().y() > 0) ? LayoutUnit() : (legend->size().height() - m_layoutFieldset.borderTop()) / 2;
|
| - paintRect.expand(0, -yOff);
|
| - paintRect.move(0, yOff);
|
| + LayoutUnit yOff = (legend->location().y() > LayoutUnit()) ? LayoutUnit() : (legend->size().height() - m_layoutFieldset.borderTop()) / 2;
|
| + paintRect.expand(LayoutUnit(), -yOff);
|
| + paintRect.move(LayoutUnit(), yOff);
|
| } else {
|
| - LayoutUnit xOff = (legend->location().x() > 0) ? LayoutUnit() : (legend->size().width() - m_layoutFieldset.borderLeft()) / 2;
|
| - paintRect.expand(-xOff, 0);
|
| - paintRect.move(xOff, 0);
|
| + LayoutUnit xOff = (legend->location().x() > LayoutUnit()) ? LayoutUnit() : (legend->size().width() - m_layoutFieldset.borderLeft()) / 2;
|
| + paintRect.expand(-xOff, LayoutUnit());
|
| + paintRect.move(xOff, LayoutUnit());
|
| }
|
|
|
| LayoutObjectDrawingRecorder recorder(paintInfo.context, m_layoutFieldset, paintInfo.phase, paintRect, paintOffset);
|
|
|