Changeset 129215 in webkit
- Timestamp:
- Sep 21, 2012 5:08:06 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r129213 r129215 1 2012-09-21 Alexandru Chiculita <achicu@adobe.com> 2 3 -webkit-clip-path is applied on elements that are not descendant of the container 4 https://bugs.webkit.org/show_bug.cgi?id=97217 5 6 Reviewed by Dirk Schulze. 7 8 Added a test to check that the clip-path is removed from the GraphicsContext in the second paint call. 9 clip-path-circle-relative-overflow had incorrect result before, so I've udpated the results on Mac 10 and added test expectations for the others. 11 12 * css3/masking/clip-path-restore-expected.html: Added. 13 * css3/masking/clip-path-restore.html: Added. 14 * platform/chromium/TestExpectations: 15 * platform/efl/TestExpectations: 16 * platform/gtk/TestExpectations: 17 * platform/mac/css3/masking/clip-path-circle-relative-overflow-expected.png: 18 * platform/qt/TestExpectations: 19 * platform/win/Skipped: 20 1 21 2012-09-21 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> 2 22 -
trunk/LayoutTests/platform/chromium/TestExpectations
r129202 r129215 3259 3259 webkit.org/b/91620 css3/filters/blur-filter-page-scroll-self.html [ ImageOnlyFailure Pass ] 3260 3260 3261 # Needs rebaseline after bug 97217 is fixed 3262 webkit.org/b/97325 css3/masking/clip-path-circle-relative-overflow.html [ ImageOnlyFailure Pass ] 3263 3261 3264 webkit.org/b/91544 media/media-continues-playing-after-replace-source.html [ Pass Timeout ] 3262 3265 -
trunk/LayoutTests/platform/efl/TestExpectations
r129213 r129215 58 58 # CSS Filters support not yet enabled (needs ENABLE_CSS_FILTERS). 59 59 webkit.org/b/85465 css3/filters [ Skip ] 60 61 # Needs rebaseline after bug 97217 is fixed 62 webkit.org/b/97325 css3/masking/clip-path-circle-relative-overflow.html [ ImageOnlyFailure Pass ] 60 63 61 64 # CSS image-resolution is not yet enabled. -
trunk/LayoutTests/platform/gtk/TestExpectations
r129171 r129215 315 315 # CSS Filters is disabled 316 316 Bug(GTK) css3/filters [ Skip ] 317 318 # Needs rebaseline after bug 97217 is fixed 319 webkit.org/b/97325 css3/masking/clip-path-circle-relative-overflow.html [ ImageOnlyFailure Pass ] 317 320 318 321 # CSS image-set support not yet enabled (needs ENABLE_CSS_IMAGE_SET). -
trunk/LayoutTests/platform/qt/TestExpectations
r129171 r129215 17 17 18 18 webkit.org/b/73766 css3/unicode-bidi-isolate-aharon-failing.html [ ImageOnlyFailure ] 19 20 # Needs rebaseline after bug 97217 is fixed 21 webkit.org/b/97325 css3/masking/clip-path-circle-relative-overflow.html [ ImageOnlyFailure Pass ] 19 22 20 23 # Web Inspector: Implement support for InspectorClient::overrideDeviceMetrics() in platforms other than Chromium -
trunk/LayoutTests/platform/win/Skipped
r129183 r129215 40 40 # Custom filters not yet supported on Windows 41 41 css3/filters/custom 42 43 # Needs rebaseline after bug 97217 is fixed 44 # https://bugs.webkit.org/show_bug.cgi?id=97325 45 css3/masking/clip-path-circle-relative-overflow.html 42 46 43 47 # CSS image-set support not yet enabled (needs ENABLE_CSS_IMAGE_SET). -
trunk/Source/WebCore/ChangeLog
r129208 r129215 1 2012-09-21 Alexandru Chiculita <achicu@adobe.com> 2 3 -webkit-clip-path is applied on elements that are not descendant of the container 4 https://bugs.webkit.org/show_bug.cgi?id=97217 5 6 Reviewed by Dirk Schulze. 7 8 The clip-path was set on the GraphicsContext, but was never restored, thus making all the layers 9 rendered in the same "group" of save/restore state use the same clip-path. 10 11 Test: css3/masking/clip-path-restore.html 12 13 * css/StyleResolver.cpp: 14 (WebCore::StyleResolver::collectMatchingRulesForList): 15 clip-path property should create a stacking-context, otherwise the RenderLayers will not be nested, 16 meaning that the clip-path of the parent is not going to apply correctly. 17 18 * rendering/RenderLayer.cpp: 19 (WebCore::RenderLayer::paintLayerContents): 20 1 21 2012-09-21 Kent Tamura <tkent@chromium.org> 2 22 -
trunk/Source/WebCore/css/StyleResolver.cpp
r129189 r129215 2194 2194 || style->hasTransformRelatedProperty() 2195 2195 || style->hasMask() 2196 || style->clipPath() 2196 2197 || style->boxReflect() 2197 2198 || style->hasFilter() -
trunk/Source/WebCore/rendering/RenderLayer.cpp
r128700 r129215 3115 3115 3116 3116 // Apply clip-path to context. 3117 bool hasClipPath = false; 3117 3118 RenderStyle* style = renderer()->style(); 3118 3119 if (renderer()->hasClipPath() && !context->paintingDisabled() && style) { 3119 3120 ASSERT(style->clipPath()); 3120 3121 if (style->clipPath()->getOperationType() == ClipPathOperation::SHAPE) { 3122 hasClipPath = true; 3123 context->save(); 3121 3124 ShapeClipPathOperation* clipPath = static_cast<ShapeClipPathOperation*>(style->clipPath()); 3122 transparencyLayerContext->clipPath(clipPath->path(calculateLayerBounds(this, rootLayer, 0)), clipPath->windRule());3125 context->clipPath(clipPath->path(calculateLayerBounds(this, rootLayer, 0)), clipPath->windRule()); 3123 3126 } 3124 3127 } … … 3290 3293 m_usedTransparency = false; 3291 3294 } 3295 3296 if (hasClipPath) 3297 context->restore(); 3292 3298 } 3293 3299
Note: See TracChangeset
for help on using the changeset viewer.