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

Unified Diff: Source/core/rendering/svg/RenderSVGShape.h

Issue 355813004: [SVG2] Elements that don't render shouldn't contribute to ancestor bboxes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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: Source/core/rendering/svg/RenderSVGShape.h
diff --git a/Source/core/rendering/svg/RenderSVGShape.h b/Source/core/rendering/svg/RenderSVGShape.h
index 12a703f063b4f29d0e565710507ba66d9b7eb91d..7bea3320aed9a89b6ce9b0b1e5a39ab723813e14 100644
--- a/Source/core/rendering/svg/RenderSVGShape.h
+++ b/Source/core/rendering/svg/RenderSVGShape.h
@@ -60,6 +60,13 @@ public:
return *m_path;
}
+ virtual bool isRenderingDisabled() const
fs 2014/06/25 12:53:20 The implementation of this is essentially the same
Erik Dahlström (inactive) 2014/06/25 14:57:42 Done.
+ {
+ // Returning false by default ensures backwards compatibility for
fs 2014/06/25 12:53:20 This will probably be mute w/ the above, but - bac
Erik Dahlström (inactive) 2014/06/25 14:57:42 Done.
+ // elements that don't implement this method.
+ return false;
+ }
+
protected:
virtual void updateShapeFromElement();
virtual bool isShapeEmpty() const { return path().isEmpty(); }

Powered by Google App Engine
This is Rietveld 408576698