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

Unified Diff: Source/core/rendering/HitTestResult.h

Issue 457013002: Avoid absoluteImageURL() creating data URLs for canvas by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix failing copyImageAt unit test Created 6 years, 4 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
« no previous file with comments | « no previous file | Source/core/rendering/HitTestResult.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/HitTestResult.h
diff --git a/Source/core/rendering/HitTestResult.h b/Source/core/rendering/HitTestResult.h
index 84e50f9a3ca8f3d697eadd432780a16b62701f1f..43e19aff4fc0652f0b186014edf3d46a23770388 100644
--- a/Source/core/rendering/HitTestResult.h
+++ b/Source/core/rendering/HitTestResult.h
@@ -106,6 +106,9 @@ public:
Image* image() const;
IntRect imageRect() const;
KURL absoluteImageURL() const;
+ // This variant of absoluteImageURL will also convert <canvas> elements
+ // to huge image data URLs (very expensive).
+ KURL absoluteImageURLIncludingCanvasDataURL() const;
KURL absoluteMediaURL() const;
KURL absoluteLinkURL() const;
String textContent() const;
@@ -132,6 +135,7 @@ public:
Node* targetNode() const { return innerNode(); }
private:
+ KURL absoluteImageURLInternal(bool allowCanvas) const;
NodeSet& mutableRectBasedTestResult(); // See above.
HTMLMediaElement* mediaElement() const;
« no previous file with comments | « no previous file | Source/core/rendering/HitTestResult.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698