Title: [270683] trunk/Source
- Revision
- 270683
- Author
- [email protected]
- Date
- 2020-12-11 09:50:08 -0800 (Fri, 11 Dec 2020)
Log Message
[GTK][WPE] Async overflow scrolling is disabled by default due to brokenness
https://bugs.webkit.org/show_bug.cgi?id=219776
Reviewed by Žan Doberšek.
Source/WebCore:
Make sure to respect GraphicsLayer::boundsOrigin when calculating
transforms, coverage and clipping in CoordinatedGraphicsLayer. Also,
when scrolling overflow areas, change the boundsOrigin on the
container layer and not the contents area, to match behaviour on Mac.
* page/scrolling/nicosia/ScrollingTreeOverflowScrollingNodeNicosia.cpp:
(WebCore::ScrollingTreeOverflowScrollingNodeNicosia::repositionScrollingLayers):
* platform/graphics/texmap/TextureMapperLayer.cpp:
(WebCore::TextureMapperLayer::paintSelfAndChildren):
* platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
(WebCore::CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly):
(WebCore::CoordinatedGraphicsLayer::computeTransformedVisibleRect):
Source/WTF:
Enable async overflow scrolling with Nicosia.
* Scripts/Preferences/WebPreferencesInternal.yaml:
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (270682 => 270683)
--- trunk/Source/WTF/ChangeLog 2020-12-11 17:32:56 UTC (rev 270682)
+++ trunk/Source/WTF/ChangeLog 2020-12-11 17:50:08 UTC (rev 270683)
@@ -1,3 +1,14 @@
+2020-12-11 Chris Lord <[email protected]>
+
+ [GTK][WPE] Async overflow scrolling is disabled by default due to brokenness
+ https://bugs.webkit.org/show_bug.cgi?id=219776
+
+ Reviewed by Žan Doberšek.
+
+ Enable async overflow scrolling with Nicosia.
+
+ * Scripts/Preferences/WebPreferencesInternal.yaml:
+
2020-12-11 Youenn Fablet <[email protected]>
Enable WebRTCPlatformSocketsEnabled by default
Modified: trunk/Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml (270682 => 270683)
--- trunk/Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml 2020-12-11 17:32:56 UTC (rev 270682)
+++ trunk/Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml 2020-12-11 17:50:08 UTC (rev 270683)
@@ -115,7 +115,7 @@
WebKitLegacy:
default: false
WebKit:
- "USE(NICOSIA)": false
+ "USE(NICOSIA)": true
"PLATFORM(IOS_FAMILY)": true
default: WebKit::defaultAsyncFrameScrollingEnabled()
WebCore:
Modified: trunk/Source/WebCore/ChangeLog (270682 => 270683)
--- trunk/Source/WebCore/ChangeLog 2020-12-11 17:32:56 UTC (rev 270682)
+++ trunk/Source/WebCore/ChangeLog 2020-12-11 17:50:08 UTC (rev 270683)
@@ -1,3 +1,23 @@
+2020-12-11 Chris Lord <[email protected]>
+
+ [GTK][WPE] Async overflow scrolling is disabled by default due to brokenness
+ https://bugs.webkit.org/show_bug.cgi?id=219776
+
+ Reviewed by Žan Doberšek.
+
+ Make sure to respect GraphicsLayer::boundsOrigin when calculating
+ transforms, coverage and clipping in CoordinatedGraphicsLayer. Also,
+ when scrolling overflow areas, change the boundsOrigin on the
+ container layer and not the contents area, to match behaviour on Mac.
+
+ * page/scrolling/nicosia/ScrollingTreeOverflowScrollingNodeNicosia.cpp:
+ (WebCore::ScrollingTreeOverflowScrollingNodeNicosia::repositionScrollingLayers):
+ * platform/graphics/texmap/TextureMapperLayer.cpp:
+ (WebCore::TextureMapperLayer::paintSelfAndChildren):
+ * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
+ (WebCore::CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly):
+ (WebCore::CoordinatedGraphicsLayer::computeTransformedVisibleRect):
+
2020-12-11 Jer Noble <[email protected]>
[iOS] Adopt AVSystemController_SubscribeToNotificationsAttribute
Modified: trunk/Source/WebCore/page/scrolling/nicosia/ScrollingTreeOverflowScrollingNodeNicosia.cpp (270682 => 270683)
--- trunk/Source/WebCore/page/scrolling/nicosia/ScrollingTreeOverflowScrollingNodeNicosia.cpp 2020-12-11 17:32:56 UTC (rev 270682)
+++ trunk/Source/WebCore/page/scrolling/nicosia/ScrollingTreeOverflowScrollingNodeNicosia.cpp 2020-12-11 17:50:08 UTC (rev 270683)
@@ -80,7 +80,7 @@
void ScrollingTreeOverflowScrollingNodeNicosia::repositionScrollingLayers()
{
- auto* scrollLayer = static_cast<Nicosia::PlatformLayer*>(scrolledContentsLayer());
+ auto* scrollLayer = static_cast<Nicosia::PlatformLayer*>(scrollContainerLayer());
ASSERT(scrollLayer);
auto& compositionLayer = downcast<Nicosia::CompositionLayer>(*scrollLayer);
Modified: trunk/Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp (270682 => 270683)
--- trunk/Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp 2020-12-11 17:32:56 UTC (rev 270682)
+++ trunk/Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp 2020-12-11 17:50:08 UTC (rev 270683)
@@ -263,7 +263,8 @@
bool shouldClip = m_state.masksToBounds && !m_state.preserves3D;
if (shouldClip) {
TransformationMatrix clipTransform;
- clipTransform.translate(options.offset.width(), options.offset.height());
+ clipTransform.translate(options.offset.width() + m_state.boundsOrigin.x(),
+ options.offset.height() + m_state.boundsOrigin.y());
clipTransform.multiply(options.transform);
clipTransform.multiply(m_layerTransforms.combined);
options.textureMapper.beginClip(clipTransform, FloatRoundedRect(layerRect()));
Modified: trunk/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp (270682 => 270683)
--- trunk/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp 2020-12-11 17:32:56 UTC (rev 270682)
+++ trunk/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp 2020-12-11 17:50:08 UTC (rev 270683)
@@ -917,6 +917,8 @@
state.anchorPoint = m_adjustedAnchorPoint;
if (localDelta.sizeChanged)
state.size = m_adjustedSize;
+ if (localDelta.boundsOriginChanged)
+ state.boundsOrigin = boundsOrigin();
if (localDelta.transformChanged)
state.transform = transform();
@@ -1325,7 +1327,7 @@
m_layerTransform.setLocalTransform(currentTransform);
m_layerTransform.setAnchorPoint(m_adjustedAnchorPoint);
- m_layerTransform.setPosition(m_adjustedPosition);
+ m_layerTransform.setPosition(FloatPoint(m_adjustedPosition.x() - boundsOrigin().x(), m_adjustedPosition.y() - boundsOrigin().y()));
m_layerTransform.setSize(m_adjustedSize);
m_layerTransform.setFlattening(!preserves3D());
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes