[CSS Regions] Overflow above the first region is not properly painted for regions with padding
Created attachment 223833 [details] Patch
Comment on attachment 223833 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=223833&action=review > Source/WebCore/ChangeLog:10 > + anonymous regions, regions never have borders/padding/margins. All of these are found The CL should emphasize the technical problem is we use the layer of the region container (with a coordinate system) but we offset the content using the location of the region. If the anonymous region had a layer and we used that instead of the region container layer, there wouldn't have been any problems. It's less important the fact anonymous regions don't have borders/padding/margins. > Source/WebCore/rendering/RenderLayer.cpp:5250 > + LayoutRect regionContentBox = region->regionContainer()->contentBoxRect(); mapLayerClipRectsToFragmentationLayer can take just RenderNamedFlowThreadFragments as a parameter or generic RenderRegions? > Source/WebCore/rendering/RenderRegion.cpp:153 > +RenderBlockFlow* RenderRegion::regionContainer() const Can we move this on RenderNamedFlowFragment? It makes more sense considering we assert the parent is a RenderNamedFlowFragmentContainer.
Comment on attachment 223833 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=223833&action=review >> Source/WebCore/rendering/RenderLayer.cpp:5250 >> + LayoutRect regionContentBox = region->regionContainer()->contentBoxRect(); > > mapLayerClipRectsToFragmentationLayer can take just RenderNamedFlowThreadFragments as a parameter or generic RenderRegions? I'll create a new issue to use RenderNamedFlowFragment whenever possible instead of RenderRegion.
Created attachment 223849 [details] Patch with update CL
(In reply to comment #3) > (From update of attachment 223833 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=223833&action=review > > >> Source/WebCore/rendering/RenderLayer.cpp:5250 > >> + LayoutRect regionContentBox = region->regionContainer()->contentBoxRect(); > > > > mapLayerClipRectsToFragmentationLayer can take just RenderNamedFlowThreadFragments as a parameter or generic RenderRegions? > > I'll create a new issue to use RenderNamedFlowFragment whenever possible instead of RenderRegion. Great!
Comment on attachment 223849 [details] Patch with update CL Clearing flags on attachment: 223849 Committed r163873: <http://trac.webkit.org/changeset/163873>
All reviewed patches have been landed. Closing bug.