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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.cpp

Issue 2575423003: Fix geometry mapping issues for float under inline (Closed)
Patch Set: SVG floating Created 3 years, 11 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/LayoutSVGBlock.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.cpp
index eb4b6f3c3f839f616a27e5fc3664a55fe1748483..851020393ffa38593bef40777a2a7e0a4571c706 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.cpp
@@ -70,6 +70,11 @@ void LayoutSVGBlock::willBeDestroyed() {
LayoutBlockFlow::willBeDestroyed();
}
+void LayoutSVGBlock::updateFromStyle() {
+ LayoutBlockFlow::updateFromStyle();
+ setFloating(false);
wkorman 2017/01/04 22:27:08 What was causing floating to be set to true in som
Xianzhu 2017/01/04 22:49:59 isFloating() is set in LayoutBox::updateFromStyle(
+}
+
void LayoutSVGBlock::styleDidChange(StyleDifference diff,
const ComputedStyle* oldStyle) {
if (diff.needsFullLayout()) {

Powered by Google App Engine
This is Rietveld 408576698