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

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

Issue 2124793002: Use the correct bounding rect in SVGInlineTextBox::nodeAtPoint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 40d75eb10c8285bd1c2b218b66830a5e6661d4b4..88648e9a09d37cfe4e6381e9b64862da8738b007 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineBox.h
+++ b/third_party/WebKit/Source/core/layout/line/InlineBox.h
@@ -234,6 +234,7 @@ public:
// The logical height is our extent in the block flow direction, i.e., height for horizontal text and width for vertical text.
LayoutUnit logicalHeight() const;
+ LayoutSize logicalSize() const { return LayoutSize(m_logicalWidth, logicalHeight()); }
Stephen Chennney 2016/07/06 14:47:37 I don't think it's worth adding this to InlineBox.
LayoutRect logicalFrameRect() const { return isHorizontal() ? LayoutRect(m_topLeft.x(), m_topLeft.y(), m_logicalWidth, logicalHeight()) : LayoutRect(m_topLeft.y(), m_topLeft.x(), m_logicalWidth, logicalHeight()); }
virtual int baselinePosition(FontBaseline baselineType) const;

Powered by Google App Engine
This is Rietveld 408576698