[Webkit-unassigned] [Bug 81786] Initial support fixed position elements in Qt WebKit2
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Apr 3 20:30:59 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=81786
Noam Rosenthal <noam.rosenthal at nokia.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #135479|review? |review-
Flag| |
--- Comment #34 from Noam Rosenthal <noam.rosenthal at nokia.com> 2012-04-03 20:30:58 PST ---
(From update of attachment 135479)
View in context: https://bugs.webkit.org/attachment.cgi?id=135479&action=review
OK, it's going in the right direction, but still too much going on per-layer.
The only thing needed to be serialized per-layer is a flag saying whether or not it's fixed to the viewport. In addition, TextureMapperLayer should have a scrollOffset which is calculated once for all fixed layers.
I feel like you're making some of the choices here based on not wanting to add new IPC messages... That doesn't feel right; We should add an IPC message for when the scroll offset changes, and keep the layer-specific info to the data that's actually layer-specific.
> Source/WebKit2/Shared/WebLayerTreeInfo.h:115
> + WebCore::IntPoint scrollPosition;
I don't see why you need to pass this for each layer. Pass it once in its own message (something like didChangeFixedObjectScrollOffset), and use the same offset for all layers.
> Source/WebKit2/UIProcess/WebLayerTreeRenderer.cpp:78
> + float scrollPositionX = std::max(scrollPosition.x(), 0.0f);
0.0f -> 0
> Source/WebKit2/UIProcess/WebLayerTreeRenderer.cpp:81
> + float scrollPositionY = std::max(scrollPosition.y(), 0.0f);
ditto
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list