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

Unified Diff: third_party/WebKit/Source/core/input/EventHandler.cpp

Issue 1367193003: NOT FOR LANDING Allocate SVGImageForContainer on demand (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added some NeedsRebaseline and revived some LayoutListMarker code that turned out to be important Created 5 years, 2 months 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
Index: third_party/WebKit/Source/core/input/EventHandler.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
index 4f97d79ed05aaaaee08082ed82196d6e60cfbad5..2ef87b66a91907478a75605b5526bdf351c941e1 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -756,7 +756,7 @@ OptionalCursor EventHandler::selectCursor(const HitTestResult& result)
// Get hotspot and convert from logical pixels to physical pixels.
IntPoint hotSpot = (*cursors)[i].hotSpot();
hotSpot.scale(scale, scale);
- IntSize size = cachedImage->imageForLayoutObject(layoutObject)->size();
+ IntSize size = cachedImage->image()->size();
if (cachedImage->errorOccurred())
continue;
// Limit the size of cursors (in UI pixels) so that they cannot be
@@ -765,7 +765,7 @@ OptionalCursor EventHandler::selectCursor(const HitTestResult& result)
if (size.width() > maximumCursorSize || size.height() > maximumCursorSize)
continue;
- Image* image = cachedImage->imageForLayoutObject(layoutObject);
+ Image* image = cachedImage->image();
// Ensure no overflow possible in calculations above.
if (scale < minimumCursorScale)
continue;
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLImageElement.cpp ('k') | third_party/WebKit/Source/core/layout/HitTestResult.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698