| Index: third_party/WebKit/Source/web/FindInPageCoordinates.h
|
| diff --git a/third_party/WebKit/Source/web/FindInPageCoordinates.h b/third_party/WebKit/Source/web/FindInPageCoordinates.h
|
| index 3388932f9fe0e397bfe05c4a9b791a5422a784bb..18764f878420d4ebddfc0361be3f7698743c2e2a 100644
|
| --- a/third_party/WebKit/Source/web/FindInPageCoordinates.h
|
| +++ b/third_party/WebKit/Source/web/FindInPageCoordinates.h
|
| @@ -40,16 +40,19 @@ class LayoutObject;
|
|
|
| // Find-in-page coordinate conversion methods.
|
| //
|
| -// This coordinate system is designed to give consistent tickmarks in cases where find matches
|
| -// are in scrollable areas but might not be visible (e.g. child frames, scroll:overflow).
|
| -// In these cases, using absolute positions might lead to tickmarks pointing outside the visible
|
| -// area of its container, which is counter-intuitive for users.
|
| +// This coordinate system is designed to give consistent tickmarks in cases
|
| +// where find matches are in scrollable areas but might not be visible (e.g.
|
| +// child frames, scroll:overflow). In these cases, using absolute positions
|
| +// might lead to tickmarks pointing outside the visible area of its container,
|
| +// which is counter-intuitive for users.
|
| //
|
| -// Find-in-page coordinates are represented as normalized fractions of the main frame document with
|
| -// the property that they are built by composing the relative position of each layoutObject to the maximum
|
| -// effective layout size of its container all the way up the layout tree. The resulting coordinates
|
| -// are scroll-independent, representing any contents scaled to the visible area of their container.
|
| -// The provided methods support scroll:overflow and are CSS position and transform-friendly.
|
| +// Find-in-page coordinates are represented as normalized fractions of the main
|
| +// frame document with the property that they are built by composing the
|
| +// relative position of each layoutObject to the maximum effective layout size
|
| +// of its container all the way up the layout tree. The resulting coordinates
|
| +// are scroll-independent, representing any contents scaled to the visible area
|
| +// of their container. The provided methods support scroll:overflow and are
|
| +// CSS position and transform-friendly.
|
|
|
| WEB_EXPORT FloatRect findInPageRectFromAbsoluteRect(const FloatRect&,
|
| const LayoutObject*);
|
|
|