Title: [111679] trunk
- Revision
- 111679
- Author
- [email protected]
- Date
- 2012-03-22 06:17:02 -0700 (Thu, 22 Mar 2012)
Log Message
[Qt] Enable FAST_MOBILE_SCROLLING when scrolling is delegated.
https://bugs.webkit.org/show_bug.cgi?id=81889
Patch by Allan Sandfeld Jensen <[email protected]> on 2012-03-22
Reviewed by Kenneth Rohde Christiansen.
Source/WebCore:
On the Qt platform only enable the fast mobile scroll feature when scrolling is delegated.
* rendering/RenderObject.cpp:
(WebCore::RenderObject::styleWillChange):
Tools:
Enable FAST_MOBILE_SCROLLING feature.
* qmake/mkspecs/features/features.prf:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (111678 => 111679)
--- trunk/Source/WebCore/ChangeLog 2012-03-22 13:06:05 UTC (rev 111678)
+++ trunk/Source/WebCore/ChangeLog 2012-03-22 13:17:02 UTC (rev 111679)
@@ -1,3 +1,15 @@
+2012-03-22 Allan Sandfeld Jensen <[email protected]>
+
+ [Qt] Enable FAST_MOBILE_SCROLLING when scrolling is delegated.
+ https://bugs.webkit.org/show_bug.cgi?id=81889
+
+ Reviewed by Kenneth Rohde Christiansen.
+
+ On the Qt platform only enable the fast mobile scroll feature when scrolling is delegated.
+
+ * rendering/RenderObject.cpp:
+ (WebCore::RenderObject::styleWillChange):
+
2012-03-22 Pavel Feldman <[email protected]>
Web Inspector: dispatch styleSheetChanged event synchronously.
Modified: trunk/Source/WebCore/rendering/RenderObject.cpp (111678 => 111679)
--- trunk/Source/WebCore/rendering/RenderObject.cpp 2012-03-22 13:06:05 UTC (rev 111678)
+++ trunk/Source/WebCore/rendering/RenderObject.cpp 2012-03-22 13:17:02 UTC (rev 111679)
@@ -1872,8 +1872,11 @@
// when scrolling a page with a fixed background image. As an optimization, assuming there are
// no fixed positoned elements on the page, we can acclerate scrolling (via blitting) if we
// ignore the CSS property "background-attachment: fixed".
- shouldBlitOnFixedBackgroundImage = true;
+#if PLATFORM(QT)
+ if (view()->frameView()->delegatesScrolling())
#endif
+ shouldBlitOnFixedBackgroundImage = true;
+#endif
bool newStyleSlowScroll = newStyle && !shouldBlitOnFixedBackgroundImage && newStyle->hasFixedBackgroundImage();
bool oldStyleSlowScroll = m_style && !shouldBlitOnFixedBackgroundImage && m_style->hasFixedBackgroundImage();
Modified: trunk/Tools/ChangeLog (111678 => 111679)
--- trunk/Tools/ChangeLog 2012-03-22 13:06:05 UTC (rev 111678)
+++ trunk/Tools/ChangeLog 2012-03-22 13:17:02 UTC (rev 111679)
@@ -1,3 +1,14 @@
+2012-03-22 Allan Sandfeld Jensen <[email protected]>
+
+ [Qt] Enable FAST_MOBILE_SCROLLING when scrolling is delegated.
+ https://bugs.webkit.org/show_bug.cgi?id=81889
+
+ Reviewed by Kenneth Rohde Christiansen.
+
+ Enable FAST_MOBILE_SCROLLING feature.
+
+ * qmake/mkspecs/features/features.prf:
+
2012-03-22 Raphael Kubo da Costa <[email protected]>
[EFL] DRT: Do not pass a relative path to DOWNLOADED_FONTS_DIR.
Modified: trunk/Tools/qmake/mkspecs/features/features.prf (111678 => 111679)
--- trunk/Tools/qmake/mkspecs/features/features.prf 2012-03-22 13:06:05 UTC (rev 111678)
+++ trunk/Tools/qmake/mkspecs/features/features.prf 2012-03-22 13:17:02 UTC (rev 111679)
@@ -90,6 +90,7 @@
!contains(DEFINES, ENABLE_TOUCH_ICON_LOADING=.): DEFINES += ENABLE_TOUCH_ICON_LOADING=0
!contains(DEFINES, ENABLE_ANIMATION_API=.): DEFINES += ENABLE_ANIMATION_API=0
!contains(DEFINES, ENABLE_TOUCH_ADJUSTMENT=.): DEFINES += ENABLE_TOUCH_ADJUSTMENT=1
+!contains(DEFINES, ENABLE_FAST_MOBILE_SCROLLING=.): DEFINES += ENABLE_FAST_MOBILE_SCROLLING=1
# Policy decisions: for using a particular third-party library or optional OS service
!contains(DEFINES, WTF_USE_QT_IMAGE_DECODER=.): DEFINES += WTF_USE_QT_IMAGE_DECODER=1
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes