[Webkit-unassigned] [Bug 83720] [Qt][WK2] Nested fixed elements scroll too fast

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 11 15:49:38 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=83720





--- Comment #4 from Yael <yael.aharon at nokia.com>  2012-04-11 15:49:38 PST ---
(In reply to comment #3)
Thanks for reviewing :)
> (From update of attachment 136766 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=136766&action=review
> 
> > Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp:525
> > +    TextureMapperLayer* parent = m_parent;
> > +    while (parent && !parent->m_fixedToViewport)
> > +        parent = parent->m_parent;
> > +
> > +    if (parent)
> > +        return;
> 
> Strange traversal...
> How about a function isAncestorFixedToViewport() that returns true/false, and this function calling it?
> 
ok

> > Source/WebKit2/UIProcess/WebLayerTreeRenderer.cpp:364
> > +    if (m_fixedLayers.isEmpty())
> > +        return;
> > +
> > +    LayerMap::iterator end = m_fixedLayers.end();
> > +    for (LayerMap::iterator it = m_fixedLayers.begin(); it != end; ++it)
> > +        toTextureMapperLayer(it->second)->setFixedToViewport(true);
> 
> This seems like a different bug/fix?
No, it is for this bug :) This is for setting the flag on TextureMapperLayer. Please see comment #1. If you prefer that I set it via GraphicsLayerTextureMapper, please let me know.

-- 
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