Changeset 231485 in webkit
- Timestamp:
- May 8, 2018 9:20:06 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r231475 r231485 1 2018-05-08 Said Abou-Hallawa <sabouhallawa@apple.com> 2 3 feTurbulence is not rendered correctly on Retina display 4 https://bugs.webkit.org/show_bug.cgi?id=183798 5 6 Reviewed by Simon Fraser. 7 8 * fast/hidpi/filters-turbulence-expected.html: Added. 9 * fast/hidpi/filters-turbulence.html: Added. 10 1 11 2018-05-07 Chris Dumez <cdumez@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r231480 r231485 1 2018-05-08 Said Abou-Hallawa <sabouhallawa@apple.com> 2 3 feTurbulence is not rendered correctly on Retina display 4 https://bugs.webkit.org/show_bug.cgi?id=183798 5 6 Reviewed by Simon Fraser. 7 8 On 2x display the feTurbulence filter creates a scaled ImageBuffer but 9 processes only the unscaled size. This is a remaining work of r168577 and 10 is very similar to what was done for the feMorphology filter in r188271. 11 12 Test: fast/hidpi/filters-turbulence.html 13 14 * platform/graphics/filters/FETurbulence.cpp: 15 (WebCore::FETurbulence::fillRegion const): 16 (WebCore::FETurbulence::platformApplySoftware): 17 1 18 2018-05-07 Zalan Bujtas <zalan@apple.com> 2 19 -
trunk/Source/WebCore/platform/graphics/filters/FETurbulence.cpp
r228218 r231485 371 371 372 372 IntRect filterRegion = absolutePaintRect(); 373 filterRegion.scale(filter().filterScale()); 373 374 FloatPoint point(0, filterRegion.y() + startY); 374 375 int indexOfPixelChannel = startY * (filterRegion.width() << 2); … … 399 400 return; 400 401 401 if (absolutePaintRect().isEmpty()) { 402 IntSize resultSize(absolutePaintRect().size()); 403 resultSize.scale(filter().filterScale()); 404 405 if (resultSize.isEmpty()) { 402 406 pixelArray->zeroFill(); 403 407 return; … … 413 417 initPaint(paintingData); 414 418 415 auto area = absolutePaintRect().area();419 auto area = resultSize.area(); 416 420 if (area.hasOverflowed()) 417 421 return; 418 422 419 int height = absolutePaintRect().height();423 int height = resultSize.height(); 420 424 421 425 unsigned maxNumThreads = height / 8;
Note: See TracChangeset
for help on using the changeset viewer.