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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBox.cpp

Issue 2798903005: Return computed style for width/height for non-root SVG (Closed)
Patch Set: - Created 3 years, 8 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/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index 05d55ffa18e60853fa851e01881dc856ea4d7827..0a82d68a769e90097295658a559f4b4ca2cda5e4 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -348,8 +348,9 @@ void LayoutBox::styleDidChange(StyleDifference diff,
document().frame()->page()->scrollingCoordinator())
scrollingCoordinator->notifyTransformChanged(*this);
}
- // Non-atomic inlines should be LayoutInline or LayoutText, not LayoutBox.
- DCHECK(!isInline() || isAtomicInlineLevel());
+ // Non-atomic inlines should be LayoutInline or LayoutText, not LayoutBox,
+ // except for SVG child.
+ DCHECK(isSVGChild() || !isInline() || isAtomicInlineLevel());
}
void LayoutBox::updateBackgroundAttachmentFixedStatusAfterStyleChange() {

Powered by Google App Engine
This is Rietveld 408576698