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

Issue 300553009: Get rid of useSVGZoomRules in FontBuilder (Closed)

Created:
6 years, 7 months ago by davve
Modified:
6 years, 6 months ago
Reviewers:
CC:
blink-reviews, blink-reviews-css, sof, eae+blinkwatch, ed+blinkwatch_opera.com, blink-reviews-dom_chromium.org, dglazkov+blink, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Get rid of useSVGZoomRules in FontBuilder First, having a flag such as useSVGZoomRules determined by the element type doesn't fit well with the way FontBuilder works. FontBuilder does nothing when there are no style affecting the font. No font is generated and no font size calculated. This means that unless a svg or foreignObject (borders between SVG and non-SVG) has one or more font related properties set, the useSVGZoomRules flag affects nothing already. But it turns out SVG finds out the font scale factor on its own by traversing ancestor chain anyway, so having a special case for SVG in FontBuilder is redundant, that font won't be used anyway, when the scale factor is different from 1.

Patch Set 1 #

Patch Set 2 : Keep text-only zoom feature; Android WebView uses it #

Patch Set 3 : Simplified patch by only including the removal of useSVGZoomRules and leave foreignObject issues fo… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -20 lines) Patch
M Source/core/css/resolver/FontBuilder.h View 2 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/css/resolver/FontBuilder.cpp View 1 2 2 chunks +6 lines, -10 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 2 7 chunks +7 lines, -7 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Powered by Google App Engine
This is Rietveld 408576698