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

Unified Diff: third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp

Issue 2181953004: Changed ComputedStyle's EVisibility to be an enum class and fixed naming (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_move_computedstyle_around
Patch Set: Rebase Created 4 years, 4 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/paint/SVGInlineTextBoxPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp b/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp
index 82e51721e34c829484f620ff2dbb9e9cb5e34bbb..620f0d59faf906ead6a11a8ee8a085c46e52815f 100644
--- a/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp
@@ -82,7 +82,7 @@ void SVGInlineTextBoxPainter::paint(const PaintInfo& paintInfo, const LayoutPoin
ASSERT(paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection);
ASSERT(m_svgInlineTextBox.truncation() == cNoTruncation);
- if (m_svgInlineTextBox.getLineLayoutItem().style()->visibility() != VISIBLE)
+ if (m_svgInlineTextBox.getLineLayoutItem().style()->visibility() != EVisibility::Visible)
return;
// We're explicitly not supporting composition & custom underlines and custom highlighters -- unlike InlineTextBox.
@@ -191,7 +191,7 @@ void SVGInlineTextBoxPainter::paintTextFragments(const PaintInfo& paintInfo, Lay
void SVGInlineTextBoxPainter::paintSelectionBackground(const PaintInfo& paintInfo)
{
- if (m_svgInlineTextBox.getLineLayoutItem().style()->visibility() != VISIBLE)
+ if (m_svgInlineTextBox.getLineLayoutItem().style()->visibility() != EVisibility::Visible)
return;
ASSERT(!paintInfo.isPrinting());
@@ -276,7 +276,7 @@ void SVGInlineTextBoxPainter::paintDecoration(const PaintInfo& paintInfo, TextDe
LayoutObject* decorationLayoutObject = findLayoutObjectDefininingTextDecoration(m_svgInlineTextBox.parent());
const ComputedStyle& decorationStyle = decorationLayoutObject->styleRef();
- if (decorationStyle.visibility() != VISIBLE)
+ if (decorationStyle.visibility() != EVisibility::Visible)
return;
float scalingFactor = 1;

Powered by Google App Engine
This is Rietveld 408576698