From 357dfc75afe893265032cfded78541ac680e7ed2 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Mon, 26 Nov 2012 18:20:41 +0000 Subject: [PATCH] Update spi_webcore_364.patch file. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@926 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- patch/patches/spi_webcore_364.patch | 40 ++++++++++++++++------------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/patch/patches/spi_webcore_364.patch b/patch/patches/spi_webcore_364.patch index 9242a628d..3bb72a165 100644 --- a/patch/patches/spi_webcore_364.patch +++ b/patch/patches/spi_webcore_364.patch @@ -1,35 +1,39 @@ Index: page/FrameView.cpp =================================================================== ---- page/FrameView.cpp (revision 103399) +--- page/FrameView.cpp (revision 134630) +++ page/FrameView.cpp (working copy) -@@ -176,10 +176,12 @@ - m_page = page; - m_page->addScrollableArea(this); +@@ -206,10 +206,12 @@ + if (!page) + return; +#if 0 - if (m_frame == m_page->mainFrame()) { - ScrollableArea::setVerticalScrollElasticity(ScrollElasticityAllowed); - ScrollableArea::setHorizontalScrollElasticity(ScrollElasticityAllowed); - } -+#endif - } + if (m_frame == page->mainFrame()) { + ScrollableArea::setVerticalScrollElasticity(ScrollElasticityAllowed); + ScrollableArea::setHorizontalScrollElasticity(ScrollElasticityAllowed); } ++#endif } -Index: platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm -=================================================================== ---- platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm (revision 101144) -+++ platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm (working copy) -@@ -356,9 +356,13 @@ + PassRefPtr FrameView::create(Frame* frame) +Index: platform/mac/NSScrollerImpDetails.mm +=================================================================== +--- platform/mac/NSScrollerImpDetails.mm (revision 134630) ++++ platform/mac/NSScrollerImpDetails.mm (working copy) +@@ -34,6 +34,7 @@ + #if PLATFORM(CHROMIUM) bool isScrollbarOverlayAPIAvailable() { +#if 0 - static bool apiAvailable = [lookUpNSScrollerImpClass() respondsToSelector:@selector(scrollerImpWithStyle:controlSize:horizontal:replacingScrollerImp:)] && - [lookUpNSScrollerImpPairClass() instancesRespondToSelector:@selector(scrollerStyle)]; + static bool apiAvailable; + static bool shouldInitialize = true; + if (shouldInitialize) { +@@ -44,6 +45,9 @@ + && [scrollerImpPairClass instancesRespondToSelector:@selector(scrollerStyle)]; + } return apiAvailable; +#else + return false; +#endif } + #endif - #endif // USE(WK_SCROLLBAR_PAINTER)