Commit 7bd3347d authored by Oriol Brufau's avatar Oriol Brufau Committed by Commit Bot

Remove dead code in Display::CSSValueFromComputedStyleInternal

No need to check 'style.Display() == EDisplay::kBlockMath' inside a
conditional with the same condition.

Change-Id: I537e857a9b4b638f8bd13e8e51a4466b4c5e24be
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2452729Reviewed-by: default avatarRune Lillesveen <futhark@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#814259}
parent 7ae1e4b8
...@@ -2445,10 +2445,7 @@ const CSSValue* Display::CSSValueFromComputedStyleInternal( ...@@ -2445,10 +2445,7 @@ const CSSValue* Display::CSSValueFromComputedStyleInternal(
if (style.Display() == EDisplay::kBlockMath) { if (style.Display() == EDisplay::kBlockMath) {
CSSValueList* values = CSSValueList::CreateSpaceSeparated(); CSSValueList* values = CSSValueList::CreateSpaceSeparated();
if (style.Display() == EDisplay::kBlockMath) values->Append(*CSSIdentifierValue::Create(CSSValueID::kBlock));
values->Append(*CSSIdentifierValue::Create(CSSValueID::kBlock));
else
values->Append(*CSSIdentifierValue::Create(CSSValueID::kInline));
values->Append(*CSSIdentifierValue::Create(CSSValueID::kMath)); values->Append(*CSSIdentifierValue::Create(CSSValueID::kMath));
return values; return values;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment