Title: [159254] trunk/Source/WebKit2
- Revision
- 159254
- Author
- [email protected]
- Date
- 2013-11-13 15:53:04 -0800 (Wed, 13 Nov 2013)
Log Message
Expose a private flag on WKView to indicate whether it's using a remote layer tree drawing area
https://bugs.webkit.org/show_bug.cgi?id=124317
Reviewed by Anders Carlsson.
Expose isUsingUISideCompositing on WKView in the private header,
which returns YES if the view is using a DrawingAreaTypeRemoteLayerTree.
* UIProcess/API/mac/WKView.mm:
(-[WKView isUsingUISideCompositing]):
* UIProcess/API/mac/WKViewPrivate.h:
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (159253 => 159254)
--- trunk/Source/WebKit2/ChangeLog 2013-11-13 23:36:22 UTC (rev 159253)
+++ trunk/Source/WebKit2/ChangeLog 2013-11-13 23:53:04 UTC (rev 159254)
@@ -1,3 +1,17 @@
+2013-11-13 Simon Fraser <[email protected]>
+
+ Expose a private flag on WKView to indicate whether it's using a remote layer tree drawing area
+ https://bugs.webkit.org/show_bug.cgi?id=124317
+
+ Reviewed by Anders Carlsson.
+
+ Expose isUsingUISideCompositing on WKView in the private header,
+ which returns YES if the view is using a DrawingAreaTypeRemoteLayerTree.
+
+ * UIProcess/API/mac/WKView.mm:
+ (-[WKView isUsingUISideCompositing]):
+ * UIProcess/API/mac/WKViewPrivate.h:
+
2013-11-13 Csaba Osztrogonác <[email protected]>
Maybe the last attempt to fix the GTK build.
Modified: trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm (159253 => 159254)
--- trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm 2013-11-13 23:36:22 UTC (rev 159253)
+++ trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm 2013-11-13 23:53:04 UTC (rev 159254)
@@ -3241,6 +3241,14 @@
#endif
}
+- (BOOL)isUsingUISideCompositing
+{
+ if (DrawingAreaProxy* drawingArea = _data->_page->drawingArea())
+ return drawingArea->type() == DrawingAreaTypeRemoteLayerTree;
+
+ return NO;
+}
+
@end
@implementation WKResponderChainSink
Modified: trunk/Source/WebKit2/UIProcess/API/mac/WKViewPrivate.h (159253 => 159254)
--- trunk/Source/WebKit2/UIProcess/API/mac/WKViewPrivate.h 2013-11-13 23:36:22 UTC (rev 159253)
+++ trunk/Source/WebKit2/UIProcess/API/mac/WKViewPrivate.h 2013-11-13 23:53:04 UTC (rev 159254)
@@ -64,6 +64,7 @@
@property (readwrite) NSSize minimumSizeForAutoLayout;
@property (readwrite) BOOL shouldClipToVisibleRect;
@property (readwrite) BOOL shouldExpandToViewHeightForAutoLayout;
+@property (readonly) BOOL isUsingUISideCompositing;
@property(copy, nonatomic) NSColor *underlayColor;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes