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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. Created 3 years, 11 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/layout/svg/LayoutSVGInlineText.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp
index f5f7ad34b2f06c9aa44a24fb1c95d2be02a248d7..1158e203b9c9847f01b0ff271b0fe9e401bb7d5a 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp
@@ -68,9 +68,9 @@ void LayoutSVGInlineText::styleDidChange(StyleDifference diff,
updateScaledFont();
bool newPreserves =
- style() ? style()->whiteSpace() == EWhiteSpace::Pre : false;
+ style() ? style()->whiteSpace() == EWhiteSpace::kPre : false;
bool oldPreserves =
- oldStyle ? oldStyle->whiteSpace() == EWhiteSpace::Pre : false;
+ oldStyle ? oldStyle->whiteSpace() == EWhiteSpace::kPre : false;
if (oldPreserves != newPreserves) {
setText(originalText(), true);
return;
@@ -299,7 +299,7 @@ void LayoutSVGInlineText::addMetricsFromRun(const TextRun& run,
const float cachedFontHeight =
fontData->getFontMetrics().floatHeight() / m_scalingFactor;
- const bool preserveWhiteSpace = styleRef().whiteSpace() == EWhiteSpace::Pre;
+ const bool preserveWhiteSpace = styleRef().whiteSpace() == EWhiteSpace::kPre;
const unsigned runLength = run.length();
// TODO(pdr): Character-based iteration is ambiguous and error-prone. It
@@ -335,7 +335,7 @@ void LayoutSVGInlineText::updateMetricsList(bool& lastCharacterWasWhiteSpace) {
BidiResolver<TextRunIterator, BidiCharacterRun> bidiResolver;
BidiRunList<BidiCharacterRun>& bidiRuns = bidiResolver.runs();
bool bidiOverride = isOverride(styleRef().unicodeBidi());
- BidiStatus status(TextDirection::Ltr, bidiOverride);
+ BidiStatus status(TextDirection::kLtr, bidiOverride);
if (run.is8Bit() || bidiOverride) {
WTF::Unicode::CharDirection direction = WTF::Unicode::LeftToRight;
// If BiDi override is in effect, use the specified direction.

Powered by Google App Engine
This is Rietveld 408576698