Title: [108571] trunk/Source/WebKit2
- Revision
- 108571
- Author
- ander...@apple.com
- Date
- 2012-02-22 16:24:11 -0800 (Wed, 22 Feb 2012)
Log Message
Implement TiledCoreAnimationDrawingAreaProxy::deviceScaleFactorDidChange
https://bugs.webkit.org/show_bug.cgi?id=79297
<rdar://problem/10748510>
Reviewed by Beth Dakin.
* UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
(WebKit::TiledCoreAnimationDrawingAreaProxy::deviceScaleFactorDidChange):
Send a message to the web process.
* WebProcess/WebPage/DrawingArea.h:
(WebKit::DrawingArea::setDeviceScaleFactor):
Add empty stub.
* WebProcess/WebPage/DrawingArea.messages.in:
Add SetDeviceScaleFactor message.
* WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
(WebKit::TiledCoreAnimationDrawingArea::setDeviceScaleFactor):
Call WebPage::setDeviceScaleFactor.
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (108570 => 108571)
--- trunk/Source/WebKit2/ChangeLog 2012-02-23 00:16:53 UTC (rev 108570)
+++ trunk/Source/WebKit2/ChangeLog 2012-02-23 00:24:11 UTC (rev 108571)
@@ -1,3 +1,26 @@
+2012-02-22 Anders Carlsson <ander...@apple.com>
+
+ Implement TiledCoreAnimationDrawingAreaProxy::deviceScaleFactorDidChange
+ https://bugs.webkit.org/show_bug.cgi?id=79297
+ <rdar://problem/10748510>
+
+ Reviewed by Beth Dakin.
+
+ * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
+ (WebKit::TiledCoreAnimationDrawingAreaProxy::deviceScaleFactorDidChange):
+ Send a message to the web process.
+
+ * WebProcess/WebPage/DrawingArea.h:
+ (WebKit::DrawingArea::setDeviceScaleFactor):
+ Add empty stub.
+
+ * WebProcess/WebPage/DrawingArea.messages.in:
+ Add SetDeviceScaleFactor message.
+
+ * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
+ (WebKit::TiledCoreAnimationDrawingArea::setDeviceScaleFactor):
+ Call WebPage::setDeviceScaleFactor.
+
2012-02-22 Brady Eidson <beid...@apple.com>
<rdar://problem/10406044> and https://bugs.webkit.org/show_bug.cgi?id=79279
Modified: trunk/Source/WebKit2/UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm (108570 => 108571)
--- trunk/Source/WebKit2/UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm 2012-02-23 00:16:53 UTC (rev 108570)
+++ trunk/Source/WebKit2/UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm 2012-02-23 00:24:11 UTC (rev 108571)
@@ -53,7 +53,7 @@
void TiledCoreAnimationDrawingAreaProxy::deviceScaleFactorDidChange()
{
- // FIXME: Implement.
+ m_webPageProxy->process()->send(Messages::DrawingArea::SetDeviceScaleFactor(m_webPageProxy->deviceScaleFactor()), m_webPageProxy->pageID());
}
void TiledCoreAnimationDrawingAreaProxy::sizeDidChange()
Modified: trunk/Source/WebKit2/WebProcess/WebPage/DrawingArea.h (108570 => 108571)
--- trunk/Source/WebKit2/WebProcess/WebPage/DrawingArea.h 2012-02-23 00:16:53 UTC (rev 108570)
+++ trunk/Source/WebKit2/WebProcess/WebPage/DrawingArea.h 2012-02-23 00:24:11 UTC (rev 108571)
@@ -105,6 +105,7 @@
#if PLATFORM(MAC)
// Used by TiledCoreAnimationDrawingArea.
virtual void updateGeometry(const WebCore::IntSize& viewSize) { }
+ virtual void setDeviceScaleFactor(float deviceScaleFactor) { }
#endif
};
Modified: trunk/Source/WebKit2/WebProcess/WebPage/DrawingArea.messages.in (108570 => 108571)
--- trunk/Source/WebKit2/WebProcess/WebPage/DrawingArea.messages.in 2012-02-23 00:16:53 UTC (rev 108570)
+++ trunk/Source/WebKit2/WebProcess/WebPage/DrawingArea.messages.in 2012-02-23 00:24:11 UTC (rev 108571)
@@ -30,5 +30,6 @@
#if PLATFORM(MAC)
// Used by TiledCoreAnimationDrawingArea.
UpdateGeometry(WebCore::IntSize viewSize)
+ SetDeviceScaleFactor(float deviceScaleFactor)
#endif
}
Modified: trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h (108570 => 108571)
--- trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h 2012-02-23 00:16:53 UTC (rev 108570)
+++ trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h 2012-02-23 00:24:11 UTC (rev 108571)
@@ -61,6 +61,7 @@
// Message handlers.
virtual void updateGeometry(const WebCore::IntSize& viewSize) OVERRIDE;
+ virtual void setDeviceScaleFactor(float) OVERRIDE;
void setRootCompositingLayer(CALayer *);
Modified: trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm (108570 => 108571)
--- trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm 2012-02-23 00:16:53 UTC (rev 108570)
+++ trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm 2012-02-23 00:24:11 UTC (rev 108571)
@@ -184,6 +184,11 @@
m_webPage->send(Messages::DrawingAreaProxy::DidUpdateGeometry());
}
+void TiledCoreAnimationDrawingArea::setDeviceScaleFactor(float deviceScaleFactor)
+{
+ m_webPage->setDeviceScaleFactor(deviceScaleFactor);
+}
+
void TiledCoreAnimationDrawingArea::setRootCompositingLayer(CALayer *layer)
{
ASSERT(!m_layerTreeStateIsFrozen);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes