Ignore:
Timestamp:
Sep 25, 2013, 10:45:59 AM (12 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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)) {
Note: See TracChangeset for help on using the changeset viewer.