Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGViewportContainer.cpp |
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGViewportContainer.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGViewportContainer.cpp |
index fb1904068d441ab0ac92299d20aaec83139f0246..3b5b2fef87910c939e18b3d55e4e35c695400b76 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGViewportContainer.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGViewportContainer.cpp |
@@ -23,23 +23,17 @@ |
#include "core/layout/svg/LayoutSVGViewportContainer.h" |
#include "core/layout/svg/SVGLayoutSupport.h" |
-#include "core/paint/SVGContainerPainter.h" |
#include "core/svg/SVGSVGElement.h" |
-#include "core/svg/SVGUseElement.h" |
-#include "platform/graphics/GraphicsContext.h" |
namespace blink { |
-LayoutSVGViewportContainer::LayoutSVGViewportContainer(SVGElement* node) |
+LayoutSVGViewportContainer::LayoutSVGViewportContainer(SVGSVGElement* node) |
: LayoutSVGContainer(node), |
m_isLayoutSizeChanged(false), |
m_needsTransformUpdate(true) {} |
void LayoutSVGViewportContainer::determineIfLayoutSizeChanged() { |
- ASSERT(element()); |
- if (!isSVGSVGElement(*element())) |
- return; |
- |
+ DCHECK(isSVGSVGElement(element())); |
m_isLayoutSizeChanged = |
toSVGSVGElement(element())->hasRelativeLengths() && selfNeedsLayout(); |
} |