Title: [138378] trunk/Source
- Revision
- 138378
- Author
- [email protected]
- Date
- 2012-12-21 07:55:43 -0800 (Fri, 21 Dec 2012)
Log Message
[EFL][WK2] Never create WebCore scrollbars for EFL/WK2
https://bugs.webkit.org/show_bug.cgi?id=105632
Reviewed by Antonio Gomes.
Source/WebCore:
For delegates scroll we must not use the scroll animator,
or similar as those depends on creating WebCore scrollbars.
Handle the wheel event manually for delegates scrolling.
* page/FrameView.cpp:
(WebCore::FrameView::wheelEvent):
Source/WebKit2:
Then creating the frame ask to not create scrollbars and
lock it so they won't be created at any later time.
* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (138377 => 138378)
--- trunk/Source/WebCore/ChangeLog 2012-12-21 15:55:43 UTC (rev 138377)
+++ trunk/Source/WebCore/ChangeLog 2012-12-21 15:55:43 UTC (rev 138378)
@@ -1,3 +1,18 @@
+2012-12-21 Kenneth Rohde Christiansen <[email protected]>
+
+ [EFL][WK2] Never create WebCore scrollbars for EFL/WK2
+ https://bugs.webkit.org/show_bug.cgi?id=105632
+
+ Reviewed by Antonio Gomes.
+
+ For delegates scroll we must not use the scroll animator,
+ or similar as those depends on creating WebCore scrollbars.
+
+ Handle the wheel event manually for delegates scrolling.
+
+ * page/FrameView.cpp:
+ (WebCore::FrameView::wheelEvent):
+
2012-12-21 Shinya Kawanaka <[email protected]>
[Shadow DOM]: ShadowRoot wrong nodeName attribute
Modified: trunk/Source/WebCore/page/FrameView.cpp (138377 => 138378)
--- trunk/Source/WebCore/page/FrameView.cpp 2012-12-21 15:55:43 UTC (rev 138377)
+++ trunk/Source/WebCore/page/FrameView.cpp 2012-12-21 15:55:43 UTC (rev 138378)
@@ -3748,6 +3748,20 @@
bool FrameView::wheelEvent(const PlatformWheelEvent& wheelEvent)
{
+ if (!isScrollable())
+ return false;
+
+ if (delegatesScrolling()) {
+ IntSize offset = scrollOffset();
+ IntSize newOffset = IntSize(offset.width() - wheelEvent.deltaX(), offset.height() - wheelEvent.deltaY());
+ if (offset != newOffset) {
+ ScrollView::scrollTo(newOffset);
+ scrollPositionChanged();
+ frame()->loader()->client()->didChangeScrollOffset();
+ }
+ return true;
+ }
+
// We don't allow mouse wheeling to happen in a ScrollView that has had its scrollbars explicitly disabled.
if (!canHaveScrollbars())
return false;
Modified: trunk/Source/WebKit2/ChangeLog (138377 => 138378)
--- trunk/Source/WebKit2/ChangeLog 2012-12-21 15:55:43 UTC (rev 138377)
+++ trunk/Source/WebKit2/ChangeLog 2012-12-21 15:55:43 UTC (rev 138378)
@@ -1,3 +1,16 @@
+2012-12-21 Kenneth Rohde Christiansen <[email protected]>
+
+ [EFL][WK2] Never create WebCore scrollbars for EFL/WK2
+ https://bugs.webkit.org/show_bug.cgi?id=105632
+
+ Reviewed by Antonio Gomes.
+
+ Then creating the frame ask to not create scrollbars and
+ lock it so they won't be created at any later time.
+
+ * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
+ (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
+
2012-12-21 Seokju Kwon <[email protected]>
[EFL] Add guard around ContextMenuItemTagInspectElement
Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp (138377 => 138378)
--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp 2012-12-21 15:55:43 UTC (rev 138377)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp 2012-12-21 15:55:43 UTC (rev 138378)
@@ -1226,6 +1226,7 @@
Color backgroundColor = webPage->drawsTransparentBackground() ? Color::transparent : Color::white;
bool isMainFrame = webPage->mainWebFrame() == m_frame;
+ bool isTransparent = !webPage->drawsBackground();
bool shouldUseFixedLayout = isMainFrame && webPage->useFixedLayout();
IntRect currentFixedVisibleContentRect = m_frame->coreFrame()->view() ? m_frame->coreFrame()->view()->fixedVisibleContentRect() : IntRect();
@@ -1233,12 +1234,16 @@
m_frameHasCustomRepresentation = isMainFrame && webPage->shouldUseCustomRepresentationForResponse(response);
m_frameCameFromPageCache = false;
- m_frame->coreFrame()->createView(webPage->size(), backgroundColor, /* transparent */ false, IntSize(), currentFixedVisibleContentRect, shouldUseFixedLayout);
- m_frame->coreFrame()->view()->setTransparent(!webPage->drawsBackground());
+#if USE(TILED_BACKING_STORE)
+ m_frame->coreFrame()->createView(webPage->size(), backgroundColor, isTransparent,
+ IntSize(), currentFixedVisibleContentRect, shouldUseFixedLayout,
+ ScrollbarAlwaysOff, /* lock */ true, ScrollbarAlwaysOff, /* lock */ true);
-#if USE(TILED_BACKING_STORE)
m_frame->coreFrame()->view()->setDelegatesScrolling(shouldUseFixedLayout);
m_frame->coreFrame()->view()->setPaintsEntireContents(shouldUseFixedLayout);
+#else
+ m_frame->coreFrame()->createView(webPage->size(), backgroundColor, isTransparent,
+ IntSize(), currentFixedVisibleContentRect, shouldUseFixedLayout);
#endif
}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes