Summary: | [CSSRegions] The list of fixed positioned layers in named flows should be sorted by z-index | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Mihnea Ovidenie <mihnea> | ||||
Component: | CSS | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | commit-queue, esprehn+autocc, glenn, kondapallykalyan, simon.fraser, WebkitBugTracker | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 57312 | ||||||
Attachments: |
|
Description
Mihnea Ovidenie
2014-01-14 05:12:42 PST
Created attachment 221146 [details]
Patch
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. (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. 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. Comment on attachment 221146 [details] Patch Clearing flags on attachment: 221146 Committed r161960: <http://trac.webkit.org/changeset/161960> All reviewed patches have been landed. Closing bug. |