Changeset 244612 in webkit
- Timestamp:
- Apr 24, 2019, 2:26:52 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 11 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r244599 r244612 1 2019-04-24 Simon Fraser <simon.fraser@apple.com> 2 3 REGRESSION (iOS 12.2): CSS perspective property value can only be set correctly once 4 https://bugs.webkit.org/show_bug.cgi?id=197105 5 6 Reviewed by Zalan Bujtas. 7 8 * compositing/style-change/backface-visibility-change-expected.html: Added. 9 * compositing/style-change/backface-visibility-change.html: Added. 10 * compositing/style-change/perspective-change-expected.html: Added. 11 * compositing/style-change/perspective-change.html: Added. 12 * compositing/style-change/perspective-origin-change-expected.html: Added. 13 * compositing/style-change/perspective-origin-change.html: Added. 14 * compositing/style-change/transform-origin-change-expected.html: Added. 15 * compositing/style-change/transform-origin-change.html: Added. 16 * compositing/style-change/transform-style-change-expected.html: Added. 17 * compositing/style-change/transform-style-change.html: Added. 18 1 19 2019-04-24 Simon Fraser <simon.fraser@apple.com> 2 20 -
trunk/Source/WebCore/ChangeLog
r244599 r244612 1 2019-04-24 Simon Fraser <simon.fraser@apple.com> 2 3 REGRESSION (iOS 12.2): CSS perspective property value can only be set correctly once 4 https://bugs.webkit.org/show_bug.cgi?id=197105 5 rdar://problem/50068230 6 7 Reviewed by Zalan Bujtas. 8 9 Make sure we trigger a geometry update when style properties change that 10 result in a StyleDifference::RecompositeLayer, and which are updated on layers 11 via RenderLayerBacking::updateGeometry(). 12 13 Tests: compositing/style-change/backface-visibility-change.html 14 compositing/style-change/perspective-change.html 15 compositing/style-change/perspective-origin-change.html 16 compositing/style-change/transform-origin-change.html 17 compositing/style-change/transform-style-change.html 18 19 * rendering/RenderLayerCompositor.cpp: 20 (WebCore::recompositeChangeRequiresGeometryUpdate): 21 (WebCore::RenderLayerCompositor::layerStyleChanged): 22 1 23 2019-04-24 Simon Fraser <simon.fraser@apple.com> 2 24 -
trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp
r244440 r244612 1415 1415 } 1416 1416 1417 static bool recompositeChangeRequiresGeometryUpdate(const RenderStyle& oldStyle, const RenderStyle& newStyle) 1418 { 1419 return oldStyle.transform() != newStyle.transform() 1420 || oldStyle.transformOriginX() != newStyle.transformOriginX() 1421 || oldStyle.transformOriginY() != newStyle.transformOriginY() 1422 || oldStyle.transformOriginZ() != newStyle.transformOriginZ() 1423 || oldStyle.transformStyle3D() != newStyle.transformStyle3D() 1424 || oldStyle.perspective() != newStyle.perspective() 1425 || oldStyle.perspectiveOriginX() != newStyle.perspectiveOriginX() 1426 || oldStyle.perspectiveOriginY() != newStyle.perspectiveOriginY() 1427 || oldStyle.backfaceVisibility() != newStyle.backfaceVisibility(); 1428 } 1429 1417 1430 void RenderLayerCompositor::layerStyleChanged(StyleDifference diff, RenderLayer& layer, const RenderStyle* oldStyle) 1418 1431 { … … 1468 1481 layer.setNeedsCompositingConfigurationUpdate(); 1469 1482 1470 if (diff >= StyleDifference::RecompositeLayer && oldStyle) { 1471 if (oldStyle->transform() != newStyle.transform()) { 1472 // FIXME: transform changes really need to trigger layout. See RenderElement::adjustStyleDifference(). 1473 layer.setNeedsPostLayoutCompositingUpdate(); 1474 layer.setNeedsCompositingGeometryUpdate(); 1475 } 1483 if (diff >= StyleDifference::RecompositeLayer && oldStyle && recompositeChangeRequiresGeometryUpdate(*oldStyle, newStyle)) { 1484 // FIXME: transform changes really need to trigger layout. See RenderElement::adjustStyleDifference(). 1485 layer.setNeedsPostLayoutCompositingUpdate(); 1486 layer.setNeedsCompositingGeometryUpdate(); 1476 1487 } 1477 1488
Note:
See TracChangeset
for help on using the changeset viewer.