| Summary: | Introduce RenderLayer::offsetFromAncestorLayer() to make convertToLayerCoords() calls with LayoutPoint(0, 0) as parameter more explicit. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | zalan <zalan> | ||||
| Component: | Layout and Rendering | Assignee: | zalan <zalan> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | commit-queue, esprehn+autocc, glenn, kondapallykalyan, simon.fraser | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
zalan
2014-06-19 22:59:08 PDT
Created attachment 233407 [details]
Patch
Comment on attachment 233407 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=233407&action=review > Source/WebCore/rendering/RenderGeometryMap.cpp:-190 > -// fprintf(stderr, "RenderGeometryMap::pushMappingsToAncestor from layer %p to layer %p, canConvertInLayerTree=%d\n", layer, ancestorLayer, canConvertInLayerTree); Lots of commented printfs in this patch. > Source/WebCore/rendering/RenderLayer.cpp:2026 > +LayoutPoint RenderLayer::offsetFromAncestorLayer(const RenderLayer* ancestorLayer) const I think you could call this offsetFromAncestor. Would it make sense to return a LayoutSize? (In reply to comment #2) > (From update of attachment 233407 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=233407&action=review > > > Source/WebCore/rendering/RenderGeometryMap.cpp:-190 > > -// fprintf(stderr, "RenderGeometryMap::pushMappingsToAncestor from layer %p to layer %p, canConvertInLayerTree=%d\n", layer, ancestorLayer, canConvertInLayerTree); > > Lots of commented printfs in this patch. You want me to keep them in? :) > > > Source/WebCore/rendering/RenderLayer.cpp:2026 > > +LayoutPoint RenderLayer::offsetFromAncestorLayer(const RenderLayer* ancestorLayer) const > > I think you could call this offsetFromAncestor. Would it make sense to return a LayoutSize? Indeed! Committed r170220: <http://trac.webkit.org/changeset/170220> |