Bug 146927 - Clean up scrollOffset/scrollPosition/scrollOrigin
Summary: Clean up scrollOffset/scrollPosition/scrollOrigin
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-13 22:16 PDT by Simon Fraser (smfr)
Modified: 2015-07-13 22:16 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2015-07-13 22:16:31 PDT
We're really confused about scrollOffset/scrollPosition/scrollOrigin.

Need to use consistent terms, possibly make it strongly typed. Need to decide on IntPoint/FloatPoint/LayoutPoint for units.

Some code to clean up:
* Move ScrollView::adjustScrollPositionWithinRange() into ScrollableArea, use it in ScrollAnimatorMac::adjustScrollPositionIfNecessary().
* Use it in ScrollView::setScrollOffset()