Changeset 163369 in webkit


Ignore:
Timestamp:
Feb 4, 2014 2:10:42 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

[CSS Regions] Fix Assert SHOULD NEVER BE REACHED in RenderLayer::enclosingElement()
https://bugs.webkit.org/show_bug.cgi?id=123329

Patch by Mihai Maerean <Mihai Maerean> on 2014-02-04
Reviewed by Mihnea Ovidenie.

Source/WebCore:

The flowthread doesn't have an enclosing element, so when hitting the layer of the
flowthread (e.g. the descent area of the RootInlineBox for the image flowed alone
inside the flow thread) we're letting the hit testing continue so it will hit the region.

Tests: fast/regions/assert-hit-test-image.html

fast/regions/auto-size/region-same-height-as-div-with-inline-child.html

  • rendering/RenderLayer.cpp:

(WebCore::RenderLayer::hitTestContents):

LayoutTests:

  • fast/regions/assert-hit-test-image.html: Added.
  • fast/regions/assert-hit-test-image-expected.txt: Added.
  • fast/regions/auto-size/region-same-height-as-div-with-inline-child.html: Added.
  • fast/regions/auto-size/region-same-height-as-div-with-inline-child-expected.txt: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r163368 r163369  
     12014-02-04  Mihai Maerean  <mmaerean@adobe.com>
     2
     3        [CSS Regions] Fix Assert SHOULD NEVER BE REACHED in RenderLayer::enclosingElement()
     4        https://bugs.webkit.org/show_bug.cgi?id=123329
     5
     6        Reviewed by Mihnea Ovidenie.
     7
     8        * fast/regions/assert-hit-test-image.html: Added.
     9        * fast/regions/assert-hit-test-image-expected.txt: Added.
     10        * fast/regions/auto-size/region-same-height-as-div-with-inline-child.html: Added.
     11        * fast/regions/auto-size/region-same-height-as-div-with-inline-child-expected.txt: Added.
     12
    1132014-02-04  Mihnea Ovidenie  <mihnea@adobe.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r163368 r163369  
     12014-02-04  Mihai Maerean  <mmaerean@adobe.com>
     2
     3        [CSS Regions] Fix Assert SHOULD NEVER BE REACHED in RenderLayer::enclosingElement()
     4        https://bugs.webkit.org/show_bug.cgi?id=123329
     5
     6        Reviewed by Mihnea Ovidenie.
     7
     8        The flowthread doesn't have an enclosing element, so when hitting the layer of the
     9        flowthread (e.g. the descent area of the RootInlineBox for the image flowed alone
     10        inside the flow thread) we're letting the hit testing continue so it will hit the region.
     11
     12        Tests: fast/regions/assert-hit-test-image.html
     13               fast/regions/auto-size/region-same-height-as-div-with-inline-child.html
     14
     15        * rendering/RenderLayer.cpp:
     16        (WebCore::RenderLayer::hitTestContents):
     17
    1182014-02-04  Mihnea Ovidenie  <mihnea@adobe.com>
    219
  • trunk/Source/WebCore/rendering/RenderLayer.cpp

    r163302 r163369  
    50425042    // the tree.
    50435043    if (!result.innerNode() || !result.innerNonSharedNode()) {
     5044        if (isOutOfFlowRenderFlowThread()) {
     5045            // The flowthread doesn't have an enclosing element, so when hitting the layer of the
     5046            // flowthread (e.g. the descent area of the RootInlineBox for the image flowed alone
     5047            // inside the flow thread) we're letting the hit testing continue so it will hit the region.
     5048            return false;
     5049        }
     5050
    50445051        Element* e = enclosingElement();
    50455052        if (!result.innerNode())
Note: See TracChangeset for help on using the changeset viewer.