Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: Source/WebCore/rendering/RenderTable.cpp

Issue 13942005: Add hit testing mode which ignores pointer-events:none. (Closed) Base URL: svn://svn.chromium.org/blink/trunk/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 * (C) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@kde.org)
5 * (C) 1999 Lars Knoll (knoll@kde.org) 5 * (C) 1999 Lars Knoll (knoll@kde.org)
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) 6 * (C) 1999 Antti Koivisto (koivisto@kde.org)
7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights reserved.
8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 if (child->nodeAtPoint(request, result, locationInContainer, chi ldPoint, action)) { 1388 if (child->nodeAtPoint(request, result, locationInContainer, chi ldPoint, action)) {
1389 updateHitTestResult(result, toLayoutPoint(locationInContaine r.point() - childPoint)); 1389 updateHitTestResult(result, toLayoutPoint(locationInContaine r.point() - childPoint));
1390 return true; 1390 return true;
1391 } 1391 }
1392 } 1392 }
1393 } 1393 }
1394 } 1394 }
1395 1395
1396 // Check our bounds next. 1396 // Check our bounds next.
1397 LayoutRect boundsRect(adjustedLocation, size()); 1397 LayoutRect boundsRect(adjustedLocation, size());
1398 if (visibleToHitTesting() && (action == HitTestBlockBackground || action == HitTestChildBlockBackground) && locationInContainer.intersects(boundsRect)) { 1398 if (visibleToHitTestRequest(request) && (action == HitTestBlockBackground || action == HitTestChildBlockBackground) && locationInContainer.intersects(bounds Rect)) {
1399 updateHitTestResult(result, flipForWritingMode(locationInContainer.point () - toLayoutSize(adjustedLocation))); 1399 updateHitTestResult(result, flipForWritingMode(locationInContainer.point () - toLayoutSize(adjustedLocation)));
1400 if (!result.addNodeToRectBasedTestResult(node(), request, locationInCont ainer, boundsRect)) 1400 if (!result.addNodeToRectBasedTestResult(node(), request, locationInCont ainer, boundsRect))
1401 return true; 1401 return true;
1402 } 1402 }
1403 1403
1404 return false; 1404 return false;
1405 } 1405 }
1406 1406
1407 RenderTable* RenderTable::createAnonymousWithParentRenderer(const RenderObject* parent) 1407 RenderTable* RenderTable::createAnonymousWithParentRenderer(const RenderObject* parent)
1408 { 1408 {
(...skipping 16 matching lines...) Expand all
1425 const BorderValue& RenderTable::tableEndBorderAdjoiningCell(const RenderTableCel l* cell) const 1425 const BorderValue& RenderTable::tableEndBorderAdjoiningCell(const RenderTableCel l* cell) const
1426 { 1426 {
1427 ASSERT(cell->isFirstOrLastCellInRow()); 1427 ASSERT(cell->isFirstOrLastCellInRow());
1428 if (hasSameDirectionAs(cell->row())) 1428 if (hasSameDirectionAs(cell->row()))
1429 return style()->borderEnd(); 1429 return style()->borderEnd();
1430 1430
1431 return style()->borderStart(); 1431 return style()->borderStart();
1432 } 1432 }
1433 1433
1434 } 1434 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698