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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.h

Issue 1841833002: Deal gracefully with null {GraphicsContext,SkPictureBuilder}.endRecording() results. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't end recording twice in DrawingRecorder. Created 4 years, 9 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/layout/svg/LayoutSVGResourceClipper.h
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.h b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.h
index 46ebbbb6f8645f7380bf5ea440889949cb208347..44f426e665815f9132282e508d9bf3373563faae 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.h
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.h
@@ -47,6 +47,8 @@ public:
SVGUnitTypes::SVGUnitType clipPathUnits() const { return toSVGClipPathElement(element())->clipPathUnits()->currentValue()->enumValue(); }
bool asPath(const AffineTransform&, const FloatRect& referenceBox, Path&);
+ // Returns a picture to paint the contents of the resource, or nullptr if the picture couldn't be created.
+ // Pictures should only fail creation in certain testing situations.
PassRefPtr<const SkPicture> createContentPicture();
bool hasCycle() { return m_inClipExpansion; }

Powered by Google App Engine
This is Rietveld 408576698