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

Unified Diff: Source/core/layout/line/InlineBox.h

Issue 1178473003: Vertical-aligned of LayoutText should not contribute to a layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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/layout/line/InlineBox.h
diff --git a/Source/core/layout/line/InlineBox.h b/Source/core/layout/line/InlineBox.h
index 545c51c7b5c4604ce498fbdf06546b286a14e536..74bc4e7e90e4357a0d6924f1a9ff3fcbe0d7d829 100644
--- a/Source/core/layout/line/InlineBox.h
+++ b/Source/core/layout/line/InlineBox.h
@@ -279,7 +279,7 @@ public:
bool visibleToHitTestRequest(const HitTestRequest& request) const { return layoutObject().visibleToHitTestRequest(request); }
- EVerticalAlign verticalAlign() const { return layoutObject().style(m_bitfields.firstLine())->verticalAlign(); }
+ EVerticalAlign verticalAlign() const { return layoutObject().isText() ? layoutObject().styleRef().initialVerticalAlign() : layoutObject().style(m_bitfields.firstLine())->verticalAlign(); }
mstensho (USE GERRIT) 2015/06/10 11:40:41 initialVerticalAlign() is static, so you don't nee
// Use with caution! The type is not checked!
LayoutBoxModelObject* boxModelObject() const

Powered by Google App Engine
This is Rietveld 408576698