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

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

Issue 2602793004: Fix positioning of "text-underline-position:under" for multi-elements (Closed)
Patch Set: drott nit 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/line/InlineBox.h
diff --git a/third_party/WebKit/Source/core/layout/line/InlineBox.h b/third_party/WebKit/Source/core/layout/line/InlineBox.h
index 16a2ed28a535e6c82b5770ac4907d79c175957b3..f4365e638b135e835bb721c4cf56a72985b9533e 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineBox.h
+++ b/third_party/WebKit/Source/core/layout/line/InlineBox.h
@@ -173,6 +173,9 @@ class CORE_EXPORT InlineBox : public DisplayItemClient {
m_bitfields.setFirstLine(firstLine);
}
bool isFirstLineStyle() const { return m_bitfields.firstLine(); }
+ const ComputedStyle& lineStyleRef() const {
+ return getLineLayoutItem().styleRef(isFirstLineStyle());
+ }
void remove(MarkLineBoxes = MarkLineBoxesDirty);

Powered by Google App Engine
This is Rietveld 408576698