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

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
« no previous file with comments | « Source/WebCore/rendering/RenderRegion.cpp ('k') | Source/WebCore/rendering/RootInlineBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Modified: svn:eol-style
- native
+ LF
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 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after
1391 if (child->nodeAtPoint(request, result, locationInContainer, chi ldPoint, action)) { 1391 if (child->nodeAtPoint(request, result, locationInContainer, chi ldPoint, action)) {
1392 updateHitTestResult(result, toLayoutPoint(locationInContaine r.point() - childPoint)); 1392 updateHitTestResult(result, toLayoutPoint(locationInContaine r.point() - childPoint));
1393 return true; 1393 return true;
1394 } 1394 }
1395 } 1395 }
1396 } 1396 }
1397 } 1397 }
1398 1398
1399 // Check our bounds next. 1399 // Check our bounds next.
1400 LayoutRect boundsRect(adjustedLocation, size()); 1400 LayoutRect boundsRect(adjustedLocation, size());
1401 if (visibleToHitTesting() && (action == HitTestBlockBackground || action == HitTestChildBlockBackground) && locationInContainer.intersects(boundsRect)) { 1401 if (visibleToHitTestRequest(request) && (action == HitTestBlockBackground || action == HitTestChildBlockBackground) && locationInContainer.intersects(bounds Rect)) {
1402 updateHitTestResult(result, flipForWritingMode(locationInContainer.point () - toLayoutSize(adjustedLocation))); 1402 updateHitTestResult(result, flipForWritingMode(locationInContainer.point () - toLayoutSize(adjustedLocation)));
1403 if (!result.addNodeToRectBasedTestResult(node(), request, locationInCont ainer, boundsRect)) 1403 if (!result.addNodeToRectBasedTestResult(node(), request, locationInCont ainer, boundsRect))
1404 return true; 1404 return true;
1405 } 1405 }
1406 1406
1407 return false; 1407 return false;
1408 } 1408 }
1409 1409
1410 RenderTable* RenderTable::createAnonymousWithParentRenderer(const RenderObject* parent) 1410 RenderTable* RenderTable::createAnonymousWithParentRenderer(const RenderObject* parent)
1411 { 1411 {
(...skipping 16 matching lines...) Expand all
1428 const BorderValue& RenderTable::tableEndBorderAdjoiningCell(const RenderTableCel l* cell) const 1428 const BorderValue& RenderTable::tableEndBorderAdjoiningCell(const RenderTableCel l* cell) const
1429 { 1429 {
1430 ASSERT(cell->isFirstOrLastCellInRow()); 1430 ASSERT(cell->isFirstOrLastCellInRow());
1431 if (hasSameDirectionAs(cell->row())) 1431 if (hasSameDirectionAs(cell->row()))
1432 return style()->borderEnd(); 1432 return style()->borderEnd();
1433 1433
1434 return style()->borderStart(); 1434 return style()->borderStart();
1435 } 1435 }
1436 1436
1437 } 1437 }
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderRegion.cpp ('k') | Source/WebCore/rendering/RootInlineBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698