RESOLVED FIXED 126978
[CSSRegions] The list of fixed positioned layers in named flows should be sorted by z-index
https://bugs.webkit.org/show_bug.cgi?id=126978
Summary [CSSRegions] The list of fixed positioned layers in named flows should be sor...
Mihnea Ovidenie
Reported 2014-01-14 05:12:42 PST
Return the list of fixed positioned layers sorted by z-index from FlowThreadController::collectFixedPositionedLayers instead of manually sort it every time we need it (RenderLayer::paintFixedLayersInNamedFlows, RenderLayer::hitTestFixedLayersInNamedFlows).
Attachments
Patch (3.46 KB, patch)
2014-01-14 05:16 PST, Mihnea Ovidenie
no flags
Mihnea Ovidenie
Comment 1 2014-01-14 05:16:52 PST
Mihai Maerean
Comment 2 2014-01-14 05:24:06 PST
Comment on attachment 221146 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=221146&action=review > Source/WebCore/rendering/FlowThreadController.cpp:282 > +static inline bool compareZIndex(RenderLayer* first, RenderLayer* second) Rather than having this method in both FlowThreadController and RenderLayer object files, maybe it should be a public static method of the RenderLayer class.
Mihnea Ovidenie
Comment 3 2014-01-14 06:04:34 PST
(In reply to comment #2) > (From update of attachment 221146 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=221146&action=review > > > Source/WebCore/rendering/FlowThreadController.cpp:282 > > +static inline bool compareZIndex(RenderLayer* first, RenderLayer* second) > > Rather than having this method in both FlowThreadController and RenderLayer object files, maybe it should be a public static method of the RenderLayer class. I thought about that but i decided not to add another method to the public interface of RenderLayer since it is just a very simple comparison function.
Antti Koivisto
Comment 4 2014-01-14 06:12:23 PST
Comment on attachment 221146 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=221146&action=review > Source/WebCore/rendering/RenderLayer.cpp:4062 > renderer().view().flowThreadController().collectFixedPositionedLayers(fixedLayers); Maybe call it collectSortedFixedPositionedLayers or similar? We nowadays prefer collection functions to return the vector normally instead of passing an argument since rvalue references make it copy-free.
WebKit Commit Bot
Comment 5 2014-01-14 06:46:55 PST
Comment on attachment 221146 [details] Patch Clearing flags on attachment: 221146 Committed r161960: <http://trac.webkit.org/changeset/161960>
WebKit Commit Bot
Comment 6 2014-01-14 06:46:57 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.