Changeset 152907 in webkit


Ignore:
Timestamp:
Jul 19, 2013 10:47:36 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Hover doesn't work for block elements inside a href element
https://bugs.webkit.org/show_bug.cgi?id=118907

Patch by Radu Stavila <stavila@adobe.com> on 2013-07-19
Reviewed by David Hyatt.

Source/WebCore:

Added test for hovering block elements inside a href element.

Test: fast/css/hover-display-block.html

  • rendering/RenderObject.cpp:

(WebCore::RenderObject::hoverAncestor):

LayoutTests:

Don't skip all anonymous objects when searching for the hover ancestor, only the ones
directly flowed into a region.

  • fast/css/hover-display-block-expected.txt: Added.
  • fast/css/hover-display-block.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r152906 r152907  
     12013-07-19  Radu Stavila  <stavila@adobe.com>
     2
     3        Hover doesn't work for block elements inside a href element
     4        https://bugs.webkit.org/show_bug.cgi?id=118907
     5
     6        Reviewed by David Hyatt.
     7
     8        Don't skip all anonymous objects when searching for the hover ancestor, only the ones
     9        directly flowed into a region.
     10
     11        * fast/css/hover-display-block-expected.txt: Added.
     12        * fast/css/hover-display-block.html: Added.
     13
    1142013-07-19  Zoltan Horvath  <zoltan@webkit.org>
    215
  • trunk/Source/WebCore/ChangeLog

    r152906 r152907  
     12013-07-19  Radu Stavila  <stavila@adobe.com>
     2
     3        Hover doesn't work for block elements inside a href element
     4        https://bugs.webkit.org/show_bug.cgi?id=118907
     5
     6        Reviewed by David Hyatt.
     7
     8        Added test for hovering block elements inside a href element.
     9
     10        Test: fast/css/hover-display-block.html
     11
     12        * rendering/RenderObject.cpp:
     13        (WebCore::RenderObject::hoverAncestor):
     14
    1152013-07-19  Zoltan Horvath  <zoltan@webkit.org>
    216
  • trunk/Source/WebCore/rendering/RenderObject.cpp

    r152440 r152907  
    30513051    RenderObject* hoverAncestor = parent();
    30523052   
    3053     // Skip anonymous blocks. There's no point in treating them as hover ancestors
    3054     // and it would also prevent us from continuing the search on the DOM tree
    3055     // when reaching the named flow thread.
    3056     if (hoverAncestor && hoverAncestor->isAnonymousBlock())
     3053    // Skip anonymous blocks directly flowed into flow threads as it would
     3054    // prevent us from continuing the search on the DOM tree when reaching the named flow thread.
     3055    if (hoverAncestor && hoverAncestor->isAnonymousBlock() && hoverAncestor->parent() && hoverAncestor->parent()->isRenderNamedFlowThread())
    30573056        hoverAncestor = hoverAncestor->parent();
    30583057
Note: See TracChangeset for help on using the changeset viewer.