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

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

Issue 988903002: [S.P.] Fix cull rects for InlineTextBox to account for vertical text. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | Source/core/layout/line/InlineBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/line/InlineBox.h
diff --git a/Source/core/layout/line/InlineBox.h b/Source/core/layout/line/InlineBox.h
index 4e87bcbc034fd92241c3585716a76308ad2471ce..92c37bdd99366569029dce6cca3dbecf5f330518 100644
--- a/Source/core/layout/line/InlineBox.h
+++ b/Source/core/layout/line/InlineBox.h
@@ -289,6 +289,12 @@ public:
}
FloatPointWillBeLayoutPoint locationIncludingFlipping();
+
+ // Converts from a rect in the logical space of the InlineBox to one in the physical space
+ // of the containing block. The logical space of an InlineBox may be transposed for vertical text and
+ // flipped for right-to-left text.
+ LayoutRect logicalRectToPhysicalRect(const LayoutRect&);
+
void flipForWritingMode(FloatRect&);
FloatPoint flipForWritingMode(const FloatPoint&);
void flipForWritingMode(LayoutRect&);
@@ -381,6 +387,10 @@ public:
#undef ADD_BOOLEAN_BITFIELD
private:
+ // Converts the given point from the logical space of the InlineBox to the physical space of the
+ // containing block.
+ FloatPointWillBeLayoutPoint logicalPointToPhysicalPoint(const FloatPoint&);
+
InlineBox* m_next; // The next element on the same line as us.
InlineBox* m_prev; // The previous element on the same line as us.
« no previous file with comments | « no previous file | Source/core/layout/line/InlineBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698