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

Unified Diff: third_party/WebKit/Source/core/layout/README.md

Issue 2387883002: Use float for scroll offset. (Closed)
Patch Set: Created 4 years, 2 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/README.md
diff --git a/third_party/WebKit/Source/core/layout/README.md b/third_party/WebKit/Source/core/layout/README.md
index 8febb9f32882371cca33e8b55da17f61ea41e637..2500c59b3b8210d4b49d8fa562b9c8589bd03022 100644
--- a/third_party/WebKit/Source/core/layout/README.md
+++ b/third_party/WebKit/Source/core/layout/README.md
@@ -41,7 +41,7 @@ no vertical scrollbar:
|__________|__________|
overflow rect
- |<--------------------->|
+ |<------------------->|
However, if the box has a scrollbar for the orthogonal direction (e.g., a vertical scrollbar
@@ -49,6 +49,7 @@ in a direction:rtl block), the size of the scrollbar must be added to the scroll
Here are two examples -- note that it doesn't matter whether the vertical scrollbar is placed on
the right or left of the box (the vertical scrollbar is the `|/|` part):
+
content
rect
|<-------->|
@@ -63,29 +64,31 @@ the right or left of the box (the vertical scrollbar is the `|/|` part):
| |/| |
| |/| |
|__________|/|__________|
-
+
overflow rect
|<--------------------->|
+
content
rect
|<-------->|
scroll
origin
|<---------->|
- _______________________
- | | |/|
- | | |/|
- | | |/|
- writing-mode: | | |/|
- vertical-rl | | |/|
- | | |/|
- | | |/|
- | | |/|
- |__________|__________|/|
-
- overflow rect
- |<--------------------->|
+ . _______________________
+ . | | |/|
+ . | | |/|
+ . | | |/|
+ writing-mode: . | | |/|
+ vertical-rl . | | |/|
+ . | | |/|
+ . | | |/|
+ . | | |/|
+ . |__________|__________|/|
+ .
+ . overflow rect
+ |<--------------------->|
+
## Coordinate Spaces

Powered by Google App Engine
This is Rietveld 408576698