| Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| index 78d02a87c11a1c59fab1f61efe381b2dd8aebd62..27d0c95710076fd610f30fde0fe90a8d3a8824a8 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| @@ -2690,7 +2690,7 @@ void LayoutObject::insertedIntoTree()
|
|
|
| // If |this| is visible but this object was not, tell the layer it has some visible content
|
| // that needs to be drawn and layer visibility optimization can't be used
|
| - if (parent()->style()->visibility() != VISIBLE && style()->visibility() == VISIBLE && !hasLayer()) {
|
| + if (parent()->style()->visibility() != EVisibility::Visible && style()->visibility() == EVisibility::Visible && !hasLayer()) {
|
| if (!layer)
|
| layer = parent()->enclosingLayer();
|
| if (layer)
|
| @@ -2747,7 +2747,7 @@ void LayoutObject::willBeRemovedFromTree()
|
|
|
| // If we remove a visible child from an invisible parent, we don't know the layer visibility any more.
|
| PaintLayer* layer = nullptr;
|
| - if (parent()->style()->visibility() != VISIBLE && style()->visibility() == VISIBLE && !hasLayer()) {
|
| + if (parent()->style()->visibility() != EVisibility::Visible && style()->visibility() == EVisibility::Visible && !hasLayer()) {
|
| layer = parent()->enclosingLayer();
|
| if (layer)
|
| layer->dirtyVisibleContentStatus();
|
| @@ -3140,7 +3140,7 @@ void LayoutObject::getTextDecorations(unsigned decorations, AppliedTextDecoratio
|
| void LayoutObject::addAnnotatedRegions(Vector<AnnotatedRegionValue>& regions)
|
| {
|
| // Convert the style regions to absolute coordinates.
|
| - if (style()->visibility() != VISIBLE || !isBox())
|
| + if (style()->visibility() != EVisibility::Visible || !isBox())
|
| return;
|
|
|
| if (style()->getDraggableRegionMode() == DraggableRegionNone)
|
| @@ -3159,7 +3159,7 @@ void LayoutObject::addAnnotatedRegions(Vector<AnnotatedRegionValue>& regions)
|
| bool LayoutObject::willRenderImage()
|
| {
|
| // Without visibility we won't render (and therefore don't care about animation).
|
| - if (style()->visibility() != VISIBLE)
|
| + if (style()->visibility() != EVisibility::Visible)
|
| return false;
|
|
|
| // We will not render a new image when Active DOM is suspended
|
|
|