| Summary: | Minimum font size pref breaks SVG text very badly | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Said Abou-Hallawa <sabouhallawa> | ||||||||
| Component: | SVG | Assignee: | Said Abou-Hallawa <sabouhallawa> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | commit-queue, simon.fraser, zimmermann | ||||||||
| Priority: | P2 | ||||||||||
| Version: | 528+ (Nightly build) | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Said Abou-Hallawa
2015-04-09 17:10:39 PDT
Created attachment 250492 [details]
Patch
Comment on attachment 250492 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=250492&action=review > Source/WebCore/style/StyleFontSizeFunctions.cpp:44 > +static float computedFontSizeFromSpecifiedSize(float specifiedSize, bool isAbsoluteSize, bool canApplyMinSizeRules, float zoomFactor, ESmartMinimumForFontSize useSmartMinimumForFontSize, const Settings* settings) The bool param makes it hard to read at the call site. An enum would be better. Created attachment 250886 [details]
Patch
Comment on attachment 250886 [details] Patch Clearing flags on attachment: 250886 Committed r182876: <http://trac.webkit.org/changeset/182876> All reviewed patches have been landed. Closing bug. Comment on attachment 250886 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=250886&action=review > Source/WebCore/ChangeLog:11 > + computed value after applying the minimum fort size rule. This means the font, not fort > Source/WebCore/style/StyleFontSizeFunctions.cpp:43 > + DonNotApplyMinimumFontSize, Typo: DonNot. > Source/WebCore/style/StyleFontSizeFunctions.cpp:48 > +static float computedFontSizeFromSpecifiedSize(float specifiedSize, bool isAbsoluteSize, float zoomFactor, MinimumFontSizeRule minimumForFontSizeRule, const Settings* settings) I think the argument name should be minimumSizeRule rather than minimumForFontSizeRule. Other argument names just say Size, not FontSize, and the For is not needed. (In reply to comment #7) > Comment on attachment 250886 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=250886&action=review > > > Source/WebCore/ChangeLog:11 > > + computed value after applying the minimum fort size rule. This means the > > font, not fort > > > Source/WebCore/style/StyleFontSizeFunctions.cpp:43 > > + DonNotApplyMinimumFontSize, > > Typo: DonNot. > > > Source/WebCore/style/StyleFontSizeFunctions.cpp:48 > > +static float computedFontSizeFromSpecifiedSize(float specifiedSize, bool isAbsoluteSize, float zoomFactor, MinimumFontSizeRule minimumForFontSizeRule, const Settings* settings) > > I think the argument name should be minimumSizeRule rather than > minimumForFontSizeRule. Other argument names just say Size, not FontSize, > and the For is not needed. Fixed. Committed r182955: <http://trac.webkit.org/changeset/182955> |