Index: third_party/WebKit/Source/core/paint/BlockPainter.cpp |
diff --git a/third_party/WebKit/Source/core/paint/BlockPainter.cpp b/third_party/WebKit/Source/core/paint/BlockPainter.cpp |
index fa66c71a7862194010f8f023096b1696738dd5cd..8e049b59272fc20c076f8fb394bce6f2c8278680 100644 |
--- a/third_party/WebKit/Source/core/paint/BlockPainter.cpp |
+++ b/third_party/WebKit/Source/core/paint/BlockPainter.cpp |
@@ -70,7 +70,7 @@ void BlockPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOff |
void BlockPainter::paintOverflowControlsIfNeeded(const PaintInfo& paintInfo, const LayoutPoint& paintOffset) |
{ |
if (m_layoutBlock.hasOverflowClip() |
- && m_layoutBlock.style()->visibility() == VISIBLE |
+ && m_layoutBlock.style()->visibility() == EVisibility::Visible |
&& shouldPaintSelfBlockBackground(paintInfo.phase) |
&& !paintInfo.paintRootBackgroundOnly()) { |
Optional<ClipRecorder> clipRecorder; |
@@ -129,7 +129,7 @@ void BlockPainter::paintObject(const PaintInfo& paintInfo, const LayoutPoint& pa |
const PaintPhase paintPhase = paintInfo.phase; |
if (shouldPaintSelfBlockBackground(paintPhase)) { |
- if (m_layoutBlock.style()->visibility() == VISIBLE && m_layoutBlock.hasBoxDecorationBackground()) |
+ if (m_layoutBlock.style()->visibility() == EVisibility::Visible && m_layoutBlock.hasBoxDecorationBackground()) |
m_layoutBlock.paintBoxDecorationBackground(paintInfo, paintOffset); |
// We're done. We don't bother painting any children. |
if (paintPhase == PaintPhaseSelfBlockBackgroundOnly) |
@@ -139,12 +139,12 @@ void BlockPainter::paintObject(const PaintInfo& paintInfo, const LayoutPoint& pa |
if (paintInfo.paintRootBackgroundOnly()) |
return; |
- if (paintPhase == PaintPhaseMask && m_layoutBlock.style()->visibility() == VISIBLE) { |
+ if (paintPhase == PaintPhaseMask && m_layoutBlock.style()->visibility() == EVisibility::Visible) { |
m_layoutBlock.paintMask(paintInfo, paintOffset); |
return; |
} |
- if (paintPhase == PaintPhaseClippingMask && m_layoutBlock.style()->visibility() == VISIBLE) { |
+ if (paintPhase == PaintPhaseClippingMask && m_layoutBlock.style()->visibility() == EVisibility::Visible) { |
BoxPainter(m_layoutBlock).paintClippingMask(paintInfo, paintOffset); |
return; |
} |