Changeset 83889 in webkit
- Timestamp:
- Apr 14, 2011 1:34:29 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r83888 r83889 1 2011-04-14 Andy Estes <aestes@apple.com> 2 3 Reviewed by Dan Bernstein. 4 5 REGRESSION (r72141): Acid3 rendering is not pixel perfect. 6 https://bugs.webkit.org/show_bug.cgi?id=55734 7 8 * fast/text/zero-font-size.html: Added. 9 * platform/mac/fast/text/zero-font-size-expected.checksum: Added. 10 * platform/mac/fast/text/zero-font-size-expected.png: Added. 11 * platform/mac/fast/text/zero-font-size-expected.txt: Added. 12 1 13 2011-04-14 Matthew Delaney <mdelaney@apple.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r83888 r83889 1 2011-04-14 Andy Estes <aestes@apple.com> 2 3 Reviewed by Dan Bernstein. 4 5 REGRESSION (r72141): Acid3 rendering is not pixel perfect. 6 https://bugs.webkit.org/show_bug.cgi?id=55734 7 8 WebCore should render text with a 0px font size at 0px regardless of 9 minimum font size settings. This is compatible with other browsers that 10 have a minimum font size preference and ensures pixel-perfect rendering 11 on Acid3. 12 13 Test: fast/text/zero-font-size.html 14 15 * css/CSSStyleSelector.cpp: 16 (WebCore::CSSStyleSelector::getComputedSizeFromSpecifiedSize): If 17 specifiedSize is 0, return specified size regardless of zoom factor or 18 minimum font size. 19 1 20 2011-04-14 Matthew Delaney <mdelaney@apple.com> 2 21 -
trunk/Source/WebCore/css/CSSStyleSelector.cpp
r83820 r83889 6802 6802 float CSSStyleSelector::getComputedSizeFromSpecifiedSize(Document* document, RenderStyle* style, bool isAbsoluteSize, float specifiedSize, bool useSVGZoomRules) 6803 6803 { 6804 // Text with a 0px font size should not be visible and therefore needs to be 6805 // exempt from minimum font size rules. Acid3 relies on this for pixel-perfect 6806 // rendering. This is also compatible with other browsers that have minimum 6807 // font size settings (e.g. Firefox). 6808 if (fabsf(specifiedSize) < std::numeric_limits<float>::epsilon()) 6809 return 0.0f; 6810 6804 6811 float zoomFactor = 1.0f; 6805 6812 if (!useSVGZoomRules) {
Note: See TracChangeset
for help on using the changeset viewer.