Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GTK] Add HighDPI support for non-accelerated compositing contents
https://bugs.webkit.org/show_bug.cgi?id=131562 Patch by Owen Taylor <otaylor@redhat.com> on 2014-05-29 Reviewed by Anders Carlsson. Source/WebCore: No new tests. This will be tested once we have the proper dependencies in the WebKit testing JHBuild. Adapted by Michael Kuhn for 2.4 branch. * platform/cairo/WidgetBackingStore.h: (WebCore::WidgetBackingStore::WidgetBackingStore): Accept a device scale argument. * platform/cairo/WidgetBackingStoreCairo.cpp: Use the device scale argument to make the surface the proper size and set the surface device scale. * platform/cairo/WidgetBackingStoreCairo.h: Accept a device scale argument. * platform/graphics/cairo/CairoUtilities.cpp: Add a new helper to set the device scale if Cairo built against is new enough. * platform/graphics/cairo/CairoUtilities.h: * platform/gtk/GtkVersioning.h: Add the HAVE_GTK_SCALE_FACTOR macro. * platform/gtk/WidgetBackingStoreGtkX11.cpp: Use the device scale argument to make the surface the proper size and set the surface device scale. * platform/gtk/WidgetBackingStoreGtkX11.h: Accept a device scale argument. Source/WebKit2: Adapted by Michael Kuhn for 2.4 branch. * UIProcess/API/gtk/WebKitWebViewBase.cpp: (deviceScaleFactorChanged): Added this callback to pass scale changes to the page proxy. (webkitWebViewBaseCreateWebPage): Attach the callback to the notify signal. * UIProcess/WebPageProxy.cpp: * UIProcess/cairo/BackingStoreCairo.cpp: (WebKit::WebPageProxy::setCustomDeviceScaleFactor): Do not set a custom device scale factor for cairo when it's not supported. (WebKit::createBackingStoreForGTK): Pass the scale factor to the WebCore backing store. (WebKit::BackingStore::incorporateUpdate): Ditto.
- Loading branch information
1 parent
936d95f
commit d860500
Showing
16 changed files
with
194 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.