summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/editing/editing_style.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-01-20 13:40:20 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-01-22 12:41:23 +0000
commit7961cea6d1041e3e454dae6a1da660b453efd238 (patch)
treec0eeb4a9ff9ba32986289c1653d9608e53ccb444 /chromium/third_party/blink/renderer/core/editing/editing_style.cc
parentb7034d0803538058e5c9d904ef03cf5eab34f6ef (diff)
downloadqtwebengine-chromium-7961cea6d1041e3e454dae6a1da660b453efd238.tar.gz
BASELINE: Update Chromium to 78.0.3904.130
Change-Id: If185e0c0061b3437531c97c9c8c78f239352a68b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
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;