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

Unified Diff: Source/core/rendering/RenderView.cpp

Issue 23785014: [SVG] Resources should be laid out in dependecy order. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: text-layout-crash.html needs image result update. Created 7 years, 3 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/RenderView.cpp
diff --git a/Source/core/rendering/RenderView.cpp b/Source/core/rendering/RenderView.cpp
index 474aff60ac86d42698d581938b1dadec7dea9da3..550ca4ed052947493a36921dcf7d8f298ed286b6 100644
--- a/Source/core/rendering/RenderView.cpp
+++ b/Source/core/rendering/RenderView.cpp
@@ -42,6 +42,7 @@
#include "core/rendering/RenderLayerCompositor.h"
#include "core/rendering/RenderSelectionInfo.h"
#include "core/rendering/RenderWidget.h"
+#include "core/svg/SVGElement.h"
namespace WebCore {
@@ -273,6 +274,12 @@ void RenderView::layout()
|| child->style()->logicalMaxHeight().isViewportPercentage()
|| child->isSVGRoot())
layoutScope.setChildNeedsLayout(child);
+
+ if (child->isSVGRoot()) {
+ ASSERT(child->node());
+ ASSERT(child->node()->isSVGElement());
+ toSVGElement(child->node())->invalidateRelativeLengthClients(&layoutScope);
+ }
}
}
« no previous file with comments | « LayoutTests/svg/text/text-layout-crash-expected.txt ('k') | Source/core/rendering/svg/RenderSVGResourceContainer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698