Title: [111299] trunk/Source/WebKit2
- Revision
- 111299
- Author
- [email protected]
- Date
- 2012-03-19 18:45:52 -0700 (Mon, 19 Mar 2012)
Log Message
Stop messing with the AppKit grow box on platforms that don't support it
<rdar://problem/10752048>
https://bugs.webkit.org/show_bug.cgi?id=81614
Reviewed by Dan Bernstein.
* UIProcess/API/mac/WKView.mm:
(-[WKView viewWillMoveToWindow:]):
(-[WKView _didChangeScrollbarsForMainFrame]):
Snow Leopard was the last Mac OS to need a grow box.
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (111298 => 111299)
--- trunk/Source/WebKit2/ChangeLog 2012-03-20 01:45:29 UTC (rev 111298)
+++ trunk/Source/WebKit2/ChangeLog 2012-03-20 01:45:52 UTC (rev 111299)
@@ -1,3 +1,16 @@
+2012-03-19 Sam Weinig <[email protected]>
+
+ Stop messing with the AppKit grow box on platforms that don't support it
+ <rdar://problem/10752048>
+ https://bugs.webkit.org/show_bug.cgi?id=81614
+
+ Reviewed by Dan Bernstein.
+
+ * UIProcess/API/mac/WKView.mm:
+ (-[WKView viewWillMoveToWindow:]):
+ (-[WKView _didChangeScrollbarsForMainFrame]):
+ Snow Leopard was the last Mac OS to need a grow box.
+
2012-03-19 Enrica Casucci <[email protected]>
WebKit2: create sandbox extensions for files that are dropped in an input control.
Modified: trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm (111298 => 111299)
--- trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm 2012-03-20 01:45:29 UTC (rev 111298)
+++ trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm 2012-03-20 01:45:52 UTC (rev 111299)
@@ -97,10 +97,13 @@
@end
@interface NSWindow (WKNSWindowDetails)
+#if defined(BUILDING_ON_SNOW_LEOPARD)
- (NSRect)_growBoxRect;
- (id)_growBoxOwner;
- (void)_setShowOpaqueGrowBoxForOwner:(id)owner;
- (BOOL)_updateGrowBoxForWindowFrameChange;
+#endif
+
- (NSRect)_intersectBottomCornersWithRect:(NSRect)viewRect;
- (void)_maskRoundedBottomCorners:(NSRect)clipRect;
@end
@@ -1744,6 +1747,8 @@
_data->_page->updateWindowIsVisible([[self window] isVisible]);
}
+
+#if defined(BUILDING_ON_SNOW_LEOPARD)
- (BOOL)_ownsWindowGrowBox
{
NSWindow* window = [self window];
@@ -1792,6 +1797,7 @@
return ownsGrowBox;
}
+#endif
// FIXME: Use AppKit constants for these when they are available.
static NSString * const windowDidChangeBackingPropertiesNotification = @"NSWindowDidChangeBackingPropertiesNotification";
@@ -1849,9 +1855,11 @@
[self removeWindowObservers];
[self addWindowObserversForWindow:window];
-
+
+#if defined(BUILDING_ON_SNOW_LEOPARD)
if ([currentWindow _growBoxOwner] == self)
[currentWindow _setShowOpaqueGrowBoxForOwner:nil];
+#endif
}
- (void)viewDidMoveToWindow
@@ -2787,7 +2795,9 @@
- (void)_didChangeScrollbarsForMainFrame
{
+#if defined(BUILDING_ON_SNOW_LEOPARD)
[self _updateGrowBoxForWindowFrameChange];
+#endif
}
#if ENABLE(FULLSCREEN_API)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes