Changeset 156404 in webkit


Ignore:
Timestamp:
Sep 25, 2013, 10:45:59 AM (11 years ago)
Author:
Antti Koivisto
Message:

REGRESSION (r156355) Links / interactive elements inside nested tables are unclickable
https://bugs.webkit.org/show_bug.cgi?id=121904

Reviewed by Andreas Kling.

Source/WebCore:

Test: fast/table/hittest-self-painting.html

Original reduction by Philippe Wittenbergh.

  • rendering/RenderTableRow.cpp:

(WebCore::RenderTableRow::styleDidChange):

Tighten a bit.

(WebCore::RenderTableRow::nodeAtPoint):

  • rendering/RenderTableSection.cpp:

(WebCore::RenderTableSection::nodeAtPoint):

These flipped accidentally in r156355.

LayoutTests:

  • fast/table/hittest-self-painting-expected.txt: Added.
  • fast/table/hittest-self-painting.html: Added.
Location:
trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r156396 r156404  
     12013-09-25  Antti Koivisto  <antti@apple.com>
     2
     3        REGRESSION (r156355) Links / interactive elements inside nested tables are unclickable
     4        https://bugs.webkit.org/show_bug.cgi?id=121904
     5
     6        Reviewed by Andreas Kling.
     7
     8        * fast/table/hittest-self-painting-expected.txt: Added.
     9        * fast/table/hittest-self-painting.html: Added.
     10
    1112013-09-25  Sanghyup Lee  <sh53.lee@samsung.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r156400 r156404  
     12013-09-25  Antti Koivisto  <antti@apple.com>
     2
     3        REGRESSION (r156355) Links / interactive elements inside nested tables are unclickable
     4        https://bugs.webkit.org/show_bug.cgi?id=121904
     5
     6        Reviewed by Andreas Kling.
     7
     8        Test: fast/table/hittest-self-painting.html
     9       
     10        Original reduction by Philippe Wittenbergh.
     11
     12        * rendering/RenderTableRow.cpp:
     13        (WebCore::RenderTableRow::styleDidChange):
     14       
     15            Tighten a bit.
     16
     17        (WebCore::RenderTableRow::nodeAtPoint):
     18        * rendering/RenderTableSection.cpp:
     19        (WebCore::RenderTableSection::nodeAtPoint):
     20       
     21            These flipped accidentally in r156355.
     22
    1232013-09-25  Alberto Garcia  <berto@igalia.com>
    224
  • trunk/Source/WebCore/rendering/RenderTableRow.cpp

    r156355 r156404  
    8282            // This only happens when borders are collapsed, since they end up affecting the border sides of the cell
    8383            // itself.
    84             for (RenderBox* childBox = firstChildBox(); childBox; childBox = childBox->nextSiblingBox()) {
    85                 if (!childBox->isTableCell())
    86                     continue;
    87                 childBox->setChildNeedsLayout(true, MarkOnlyThis);
    88             }
     84            for (RenderTableCell* cell = firstCell(); cell; cell = cell->nextCell())
     85                cell->setChildNeedsLayout(true, MarkOnlyThis);
    8986        }
    9087    }
     
    217214        // table-specific hit-test method (which we should do for performance reasons anyway),
    218215        // then we can remove this check.
    219         if (cell->hasSelfPaintingLayer()) {
     216        if (!cell->hasSelfPaintingLayer()) {
    220217            LayoutPoint cellPoint = flipForWritingModeForChild(cell, accumulatedOffset);
    221218            if (cell->nodeAtPoint(request, result, locationInContainer, cellPoint, action)) {
  • trunk/Source/WebCore/rendering/RenderTableSection.cpp

    r156355 r156404  
    13531353            // table-specific hit-test method (which we should do for performance reasons anyway),
    13541354            // then we can remove this check.
    1355             if (row->hasSelfPaintingLayer()) {
     1355            if (!row->hasSelfPaintingLayer()) {
    13561356                LayoutPoint childPoint = flipForWritingModeForChild(row, adjustedLocation);
    13571357                if (row->nodeAtPoint(request, result, locationInContainer, childPoint, action)) {
Note: See TracChangeset for help on using the changeset viewer.