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

Side by Side Diff: third_party/WebKit/Source/core/layout/README.md

Issue 2073563002: Rework mapToVisualRectInAncestorSpace to handle flipped blocks correctly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to head. 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 unified diff | Download patch
OLDNEW
1 # `Source/core/layout` 1 # `Source/core/layout`
2 2
3 ## Overflow rects and scroll offsets 3 ## Overflow rects and scroll offsets
4 4
5 PaintLayerScrollableArea uses a "scroll origin" to conceptually represent the di stance between 5 PaintLayerScrollableArea uses a "scroll origin" to conceptually represent the di stance between
6 the top-left corner of the box'es content rect and the top-left corner of its ov erflow rect 6 the top-left corner of the box'es content rect and the top-left corner of its ov erflow rect
7 when the box is scrolled to the logical beginning of its content (.e.g. all the way to the left for 7 when the box is scrolled to the logical beginning of its content (.e.g. all the way to the left for
8 LTR, all the way to the right for RTL). For left-to-right and top-to-bottom flo ws, the scroll 8 LTR, all the way to the right for RTL). For left-to-right and top-to-bottom flo ws, the scroll
9 origin is zero, i.e., the top/left of the overflow rect is at the same position as the top/left of 9 origin is zero, i.e., the top/left of the overflow rect is at the same position as the top/left of
10 the box'es content rect when scrolled to the beginning of flow. For right-to-le ft and bottom-to-top 10 the box'es content rect when scrolled to the beginning of flow. For right-to-le ft and bottom-to-top
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 | | |/| 70 | | |/|
71 writing-mode: | | |/| 71 writing-mode: | | |/|
72 vertical-rl | | |/| 72 vertical-rl | | |/|
73 | | |/| 73 | | |/|
74 | | |/| 74 | | |/|
75 | | |/| 75 | | |/|
76 |__________|__________|/| 76 |__________|__________|/|
77 77
78 overflow rect 78 overflow rect
79 |<--------------------->| 79 |<--------------------->|
80
81 ## Coordinate Spaces
82
83 TODO(wkorman): Document writing mode, particularly flipped blocks.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698