• commit-queue@webkit.org's avatar
    [CSS Regions] Fix positioning composited layers when the region has overflow:hidden · 4affaa08
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=124042
    
    Patch by Mihai Maerean <mmaerean@adobe.com> on 2014-01-23
    Reviewed by Mihnea Ovidenie.
    
    Source/WebCore:
    
    If there's a clipping GraphicsLayer on the hierarchy, substract its offset, since it's its
    parent that positions us.
    
    Tests: compositing/regions/position-layer-inside-region-overflow-hidden.html
           compositing/regions/position-layer-inside-overflow-hidden.html
           compositing/regions/position-layers-inside-region-overflow-hidden.html
           compositing/regions/position-layers-inside-regions-overflow-hidden.html
    
    * rendering/RenderLayerBacking.cpp:
    (WebCore::RenderLayerBacking::adjustAncestorCompositingBoundsForFlowThread): The position
    must also be correct when the region has box-shadow that inflates the region's layer. The
    composited layers from the flow thread should be rendered in the same position whether the
    associated region has clipping or not.
    Using the position of the clipping layer instead of the location of the clipbox makes it
    also work with box-shadow that inflates the region's graphics layer.
    
    LayoutTests:
    
    * compositing/regions/position-layer-inside-region-overflow-hidden.html: Added.
    * compositing/regions/position-layer-inside-region-overflow-hidden-expected.html: Added.
    * compositing/regions/position-layer-inside-overflow-hidden.html: Added.
    * compositing/regions/position-layer-inside-overflow-hidden-expected.html: Added.
    * compositing/regions/position-layers-inside-region-overflow-hidden.html: Added.
    * compositing/regions/position-layers-inside-region-overflow-hidden-expected.html: Added.
    * compositing/regions/position-layers-inside-regions-overflow-hidden.html: Added.
    * compositing/regions/position-layers-inside-regions-overflow-hidden-expected.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162605 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    4affaa08
Name
Last commit
Last update
..
Configurations Loading commit data...
English.lproj Loading commit data...
ForwardingHeaders Loading commit data...
Modules Loading commit data...
Resources Loading commit data...
WebCore.vcxproj Loading commit data...
WebCore.xcodeproj Loading commit data...
accessibility Loading commit data...
bindings Loading commit data...
bridge Loading commit data...
crypto Loading commit data...
css Loading commit data...
cssjit Loading commit data...
dom Loading commit data...
editing Loading commit data...
fileapi Loading commit data...
history Loading commit data...
html Loading commit data...
icu Loading commit data...
inspector Loading commit data...
loader Loading commit data...
mathml Loading commit data...
page Loading commit data...
pdf/ios Loading commit data...
platform Loading commit data...
plugins Loading commit data...
rendering Loading commit data...
storage Loading commit data...
style Loading commit data...
svg Loading commit data...
testing Loading commit data...
workers Loading commit data...
xml Loading commit data...
.gitattributes Loading commit data...
CMakeLists.txt Loading commit data...
ChangeLog Loading commit data...
ChangeLog-2002-12-03 Loading commit data...
ChangeLog-2003-10-25 Loading commit data...
ChangeLog-2005-08-23 Loading commit data...
ChangeLog-2005-12-19 Loading commit data...
ChangeLog-2006-05-10 Loading commit data...
ChangeLog-2006-12-31 Loading commit data...
ChangeLog-2007-10-14 Loading commit data...
ChangeLog-2008-08-10 Loading commit data...
ChangeLog-2009-06-16 Loading commit data...
ChangeLog-2010-01-29 Loading commit data...
ChangeLog-2010-05-24 Loading commit data...
ChangeLog-2010-12-06 Loading commit data...
ChangeLog-2011-02-16 Loading commit data...
ChangeLog-2011-06-04 Loading commit data...
ChangeLog-2011-10-19 Loading commit data...
ChangeLog-2012-05-22 Loading commit data...
ChangeLog-2012-10-02 Loading commit data...
ChangeLog-2013-04-24 Loading commit data...
ChangeLog-2013-10-13 Loading commit data...
DerivedSources.cpp Loading commit data...
DerivedSources.make Loading commit data...
GNUmakefile.am Loading commit data...
GNUmakefile.list.am Loading commit data...
Info.plist Loading commit data...
LICENSE-APPLE Loading commit data...
LICENSE-LGPL-2 Loading commit data...
LICENSE-LGPL-2.1 Loading commit data...
Makefile Loading commit data...
PlatformEfl.cmake Loading commit data...
PlatformGTK.cmake Loading commit data...
PlatformWin.cmake Loading commit data...
PlatformWinCE.cmake Loading commit data...
UseJSC.cmake Loading commit data...
WebCore.exp.in Loading commit data...
WebCore.order Loading commit data...
WebCorePrefix.cpp Loading commit data...
WebCorePrefix.h Loading commit data...
config.h Loading commit data...
extract-localizable-strings.pl Loading commit data...
generate-export-file Loading commit data...
make-export-file-generator Loading commit data...
make-file-arrays.py Loading commit data...
make-generated-sources.sh Loading commit data...
make-hash-tools.pl Loading commit data...
move-js-headers.sh Loading commit data...