Changeset 237691 in webkit
- Timestamp:
- Nov 1, 2018 11:49:13 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r237683 r237691 1 2018-11-01 Said Abou-Hallawa <sabouhallawa@apple.com> 2 3 [CG] Adopt CG SPI for non-even cornered rounded rects 4 https://bugs.webkit.org/show_bug.cgi?id=190155 5 6 Reviewed by Simon Fraser. 7 8 This test fails on iOS simulator because of just one pixel difference 9 between drawing a shadow of the element and drawing a copy of the element. 10 This failure happens on iOS and does not happen on macOS because we don't 11 use accelerated drawing for macOS testing but we use it for iOS testing. 12 13 * platform/ios/TestExpectations: 14 1 15 2018-11-01 Chris Dumez <cdumez@apple.com> 2 16 -
trunk/LayoutTests/platform/ios/TestExpectations
r237679 r237691 1937 1937 fast/box-decoration-break/box-decoration-break-rendering.html 1938 1938 fast/box-shadow/border-radius-big.html 1939 fast/box-shadow/box-shadow-with-zero-radius.html [ ImageOnlyFailure ] 1939 1940 1940 1941 # <rdar://problem/19226186> ASSERT(m_mainThreadLoader) fails in WorkerThreadableLoader::MainThreadBridge::MainThreadBridge() -
trunk/Source/WebCore/ChangeLog
r237688 r237691 1 2018-11-01 Said Abou-Hallawa <sabouhallawa@apple.com> 2 3 [CG] Adopt CG SPI for non-even cornered rounded rects 4 https://bugs.webkit.org/show_bug.cgi?id=190155 5 6 Reviewed by Simon Fraser. 7 8 Instead of creating bezier curves for the non-even corners of the rounded 9 rects, we should use the optimized SPI provided by CG. 10 11 * platform/graphics/cg/PathCG.cpp: 12 (WebCore::Path::platformAddPathForRoundedRect): 13 1 14 2018-11-01 Youenn Fablet <youenn@apple.com> 2 15 -
trunk/Source/WebCore/PAL/ChangeLog
r237607 r237691 1 2018-11-01 Said Abou-Hallawa <sabouhallawa@apple.com> 2 3 [CG] Adopt CG SPI for non-even cornered rounded rects 4 https://bugs.webkit.org/show_bug.cgi?id=190155 5 6 Reviewed by Simon Fraser. 7 8 * pal/spi/cg/CoreGraphicsSPI.h: 9 1 10 2018-10-30 Alexey Proskuryakov <ap@apple.com> 2 11 -
trunk/Source/WebCore/PAL/pal/spi/cg/CoreGraphicsSPI.h
r237359 r237691 282 282 283 283 void CGContextDrawConicGradient(CGContextRef, CGGradientRef, CGPoint center, CGFloat angle); 284 285 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 120000) 286 void CGPathAddUnevenCornersRoundedRect(CGMutablePathRef, const CGAffineTransform *, CGRect, const CGSize corners[4]); 287 #endif 284 288 #endif 285 289 -
trunk/Source/WebCore/platform/graphics/cg/PathCG.cpp
r237359 r237691 319 319 return; 320 320 } 321 322 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 120000) 323 CGRect rectToDraw = rect; 324 CGSize corners[4] = { bottomLeftRadius, bottomRightRadius, topRightRadius, topLeftRadius }; 325 CGPathAddUnevenCornersRoundedRect(ensurePlatformPath(), nullptr, rectToDraw, corners); 326 return; 327 #endif 321 328 #endif 322 329
Note: See TracChangeset
for help on using the changeset viewer.