mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	- Restore original file permissions after patching a file (issue #387).
- Add the ability to selectively apply patches based on the presence of an environment variable (issue #388). - Add a patch to disable scrollbar bounce and scrollbar overlay on Lion based on the presence of the CEF_SPI_BUILD environment variable (issue #364). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@339 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
		
							
								
								
									
										35
									
								
								patch/patches/spi_webcore_364.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								patch/patches/spi_webcore_364.patch
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,35 @@
 | 
			
		||||
Index: page/FrameView.cpp
 | 
			
		||||
===================================================================
 | 
			
		||||
--- page/FrameView.cpp	(revision 97950)
 | 
			
		||||
+++ page/FrameView.cpp	(working copy)
 | 
			
		||||
@@ -152,10 +152,12 @@
 | 
			
		||||
             m_page = page;
 | 
			
		||||
             m_page->addScrollableArea(this);
 | 
			
		||||
 
 | 
			
		||||
+#if 0
 | 
			
		||||
             if (m_frame == m_page->mainFrame()) {
 | 
			
		||||
                 ScrollableArea::setVerticalScrollElasticity(ScrollElasticityAllowed);
 | 
			
		||||
                 ScrollableArea::setHorizontalScrollElasticity(ScrollElasticityAllowed);
 | 
			
		||||
             }
 | 
			
		||||
+#endif
 | 
			
		||||
         }
 | 
			
		||||
     }
 | 
			
		||||
 }
 | 
			
		||||
Index: platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm
 | 
			
		||||
===================================================================
 | 
			
		||||
--- platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm	(revision 97950)
 | 
			
		||||
+++ platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm	(working copy)
 | 
			
		||||
@@ -356,9 +356,13 @@
 | 
			
		||||
 
 | 
			
		||||
 bool isScrollbarOverlayAPIAvailable()
 | 
			
		||||
 {
 | 
			
		||||
+#if 0
 | 
			
		||||
     static bool apiAvailable = [lookUpNSScrollerImpClass() respondsToSelector:@selector(scrollerImpWithStyle:controlSize:horizontal:replacingScrollerImp:)] &&
 | 
			
		||||
                                [lookUpNSScrollerImpPairClass() instancesRespondToSelector:@selector(scrollerStyle)];
 | 
			
		||||
     return apiAvailable;
 | 
			
		||||
+#else
 | 
			
		||||
+    return false;
 | 
			
		||||
+#endif
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
 #endif // USE(WK_SCROLLBAR_PAINTER)
 | 
			
		||||
		Reference in New Issue
	
	Block a user