Commit 29e4f1d2 authored by Fernando Serboncini's avatar Fernando Serboncini Committed by Commit Bot

Ignore inherit fonts on OffscreenCanvas2D

Bug: 782119
Change-Id: I534996d8f222b0ed277de74c0ee6f860f7d60a36
Reviewed-on: https://chromium-review.googlesource.com/759093Reviewed-by: default avatarJustin Novosad <junov@chromium.org>
Commit-Queue: Fernando Serboncini <fserb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#515250}
parent 2111f8d2
...@@ -286,6 +286,11 @@ void OffscreenCanvasRenderingContext2D::setFont(const String& new_font) { ...@@ -286,6 +286,11 @@ void OffscreenCanvasRenderingContext2D::setFont(const String& new_font) {
MutableStylePropertySet::Create(kHTMLStandardMode); MutableStylePropertySet::Create(kHTMLStandardMode);
if (!style) if (!style)
return; return;
if (EqualIgnoringASCIICase(new_font, "inherit")) {
return;
}
CSSParser::ParseValue(style, CSSPropertyFont, new_font, true); CSSParser::ParseValue(style, CSSPropertyFont, new_font, true);
FontDescription desc = FontDescription desc =
......
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