Changeset 162273 in webkit
- Timestamp:
- Jan 18, 2014 1:24:25 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r162272 r162273 1 2014-01-18 Zalan Bujtas <zalan@apple.com> 2 3 Subpixel layout: IntRect::infiniteRect() overflows when subpixel layout is enabled. 4 https://bugs.webkit.org/show_bug.cgi?id=126899 5 6 Reviewed by Tim Horton. 7 8 Use LayoutUnits when setting the infinite values on IntRect::infiniteRect() to ensure 9 it won't overflow later when the IntRect gets converted to LayoutRect. 10 11 * platform/mac/TestExpectations: Unskipping svg test (failed with subpixel on) 12 1 13 2014-01-18 Anders Carlsson <andersca@apple.com> 2 14 -
trunk/LayoutTests/platform/mac/TestExpectations
r162261 r162273 1358 1358 webkit.org/b/126898 css3/flexbox/image-percent-max-height.html 1359 1359 1360 # Subpixel: missing text between svg contents1361 webkit.org/b/126899 svg/custom/masking-clipping-hidpi.svg1362 1363 1360 # Subpixel: misplaced zoomed svg content. 1364 1361 webkit.org/b/126900 svg/zoom/page/zoom-zoom-coords.xhtml -
trunk/Source/WebCore/ChangeLog
r162272 r162273 1 2014-01-18 Zalan Bujtas <zalan@apple.com> 2 3 Subpixel layout: IntRect::infiniteRect() overflows when subpixel layout is enabled. 4 https://bugs.webkit.org/show_bug.cgi?id=126899 5 6 Reviewed by Tim Horton. 7 8 Use LayoutUnits when setting the infinite values on IntRect::infiniteRect() to ensure 9 it won't overflow later when the IntRect gets converted to LayoutRect. 10 11 Covered by existing tests. 12 13 * platform/graphics/IntRect.h: 14 (WebCore::IntRect::infiniteRect): 15 1 16 2014-01-18 Anders Carlsson <andersca@apple.com> 2 17 -
trunk/Source/WebCore/platform/graphics/IntRect.h
r161699 r162273 28 28 29 29 #include "IntPoint.h" 30 #include "LayoutUnit.h" 30 31 #include <wtf/Vector.h> 31 32 … … 237 238 inline IntRect IntRect::infiniteRect() 238 239 { 239 static IntRect infiniteRect(- std::numeric_limits<int>::max() / 2, -std::numeric_limits<int>::max() / 2, std::numeric_limits<int>::max(), std::numeric_limits<int>::max());240 static IntRect infiniteRect(-LayoutUnit::max() / 2, -LayoutUnit::max() / 2, LayoutUnit::max(), LayoutUnit::max()); 240 241 return infiniteRect; 241 242 }
Note: See TracChangeset
for help on using the changeset viewer.