Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1780)

Unified Diff: Source/web/ChromeClientImpl.cpp

Issue 105363002: Make SVG images for custom CSS cursors appear sharp on retina displays (Closed) Base URL: http://src.chromium.org/blink/trunk/
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/platform/Cursor.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/ChromeClientImpl.cpp
===================================================================
--- Source/web/ChromeClientImpl.cpp (revision 162906)
+++ Source/web/ChromeClientImpl.cpp (working copy)
@@ -716,7 +716,7 @@
void ChromeClientImpl::setCursor(const WebCore::Cursor& cursor)
{
- setCursor(WebCursorInfo(cursor));
+ setCursor(WebCursorInfo(rasterizeSVGCursor(cursor, m_webView->deviceScaleFactor())));
pdr. 2013/12/04 20:55:40 Is this codepath only used for SVG cursors?
Evan Wallace 2013/12/04 21:31:09 Yes, rasterizeSVGCursor() will only rasterize the
}
void ChromeClientImpl::setCursor(const WebCursorInfo& cursor)
« no previous file with comments | « Source/core/platform/Cursor.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698