-
anilsson@rim.com authored
https://bugs.webkit.org/show_bug.cgi?id=112255 Reviewed by Rob Buis. PR 308284. Reviewed internally by Yongxin Dai. Source/WebCore: Add a getter for the layer renderer of a compositing thread layer. No change in behavior, no new tests. * platform/graphics/blackberry/LayerCompositingThread.h: (WebCore::LayerCompositingThread::layerRenderer): Source/WebKit/blackberry: The cached draw rectangle is useful for hit testing. Add a getter for this compositing thread layer property to the public WebOverlay API. We name this getter using terminology familiar from the ViewportAccessor interface, to clarify which coordinate system the getter uses (pixel coordinates relative to the viewport). Note that WebKit-thread flavor of WebOverlay is not currently used by any API client and is marked obsolete. It is used internally in WebKit, but for that case using GraphicsLayer directly works well. This will allow the complexity of WebOverlay to be significantly reduced in the future, by removing the WebKit-thread flavor entirely. * Api/WebOverlay.cpp: (BlackBerry::WebKit::WebOverlay::pixelViewportRect): (WebKit): (BlackBerry::WebKit::WebOverlayPrivateWebKitThread::pixelViewportRect): (BlackBerry::WebKit::WebOverlayPrivateCompositingThread::pixelViewportRect): * Api/WebOverlay.h: (WebKit): * Api/WebOverlay_p.h: (WebOverlayPrivate): (WebOverlayPrivateWebKitThread): (WebOverlayPrivateCompositingThread): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145962 268f45cc-cd09-0410-ab3c-d52691b4dbfc
4378b3c7