summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/editing/editing_style.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/editing/editing_style.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/editing/editing_style.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chromium/third_party/blink/renderer/core/editing/editing_style.cc b/chromium/third_party/blink/renderer/core/editing/editing_style.cc
index f8d9d45259b..a8cba15435c 100644
--- a/chromium/third_party/blink/renderer/core/editing/editing_style.cc
+++ b/chromium/third_party/blink/renderer/core/editing/editing_style.cc
@@ -1907,11 +1907,11 @@ int LegacyFontSizeFromCSSValue(Document* document,
}
if (const auto* identifier_value = DynamicTo<CSSIdentifierValue>(value)) {
+ if (identifier_value->GetValueID() == CSSValueID::kWebkitXxxLarge)
+ return FontSizeFunctions::KeywordSize(CSSValueID::kXxxLarge) - 1;
if (CSSValueID::kXSmall <= identifier_value->GetValueID() &&
- identifier_value->GetValueID() <= CSSValueID::kWebkitXxxLarge) {
- return static_cast<int>(identifier_value->GetValueID()) -
- static_cast<int>(CSSValueID::kXSmall) + 1;
- }
+ identifier_value->GetValueID() <= CSSValueID::kXxxLarge)
+ return FontSizeFunctions::KeywordSize(identifier_value->GetValueID()) - 1;
}
return 0;