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

Side by Side Diff: Source/core/layout/LayoutTable.cpp

Issue 869813003: Implement elementsFromPoint (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix typeo Created 5 years, 10 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
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, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights 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 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after
1309 return true; 1309 return true;
1310 } 1310 }
1311 } 1311 }
1312 } 1312 }
1313 } 1313 }
1314 1314
1315 // Check our bounds next. 1315 // Check our bounds next.
1316 LayoutRect boundsRect(adjustedLocation, size()); 1316 LayoutRect boundsRect(adjustedLocation, size());
1317 if (visibleToHitTestRequest(request) && (action == HitTestBlockBackground || action == HitTestChildBlockBackground) && locationInContainer.intersects(bounds Rect)) { 1317 if (visibleToHitTestRequest(request) && (action == HitTestBlockBackground || action == HitTestChildBlockBackground) && locationInContainer.intersects(bounds Rect)) {
1318 updateHitTestResult(result, flipForWritingMode(locationInContainer.point () - toLayoutSize(adjustedLocation))); 1318 updateHitTestResult(result, flipForWritingMode(locationInContainer.point () - toLayoutSize(adjustedLocation)));
1319 if (!result.addNodeToRectBasedTestResult(node(), request, locationInCont ainer, boundsRect)) 1319 if (!result.addNodeToListBasedTestResult(node(), request, locationInCont ainer, boundsRect))
1320 return true; 1320 return true;
1321 } 1321 }
1322 1322
1323 return false; 1323 return false;
1324 } 1324 }
1325 1325
1326 LayoutTable* LayoutTable::createAnonymousWithParentRenderer(const RenderObject* parent) 1326 LayoutTable* LayoutTable::createAnonymousWithParentRenderer(const RenderObject* parent)
1327 { 1327 {
1328 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay( parent->style(), TABLE); 1328 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay( parent->style(), TABLE);
1329 LayoutTable* newTable = new LayoutTable(0); 1329 LayoutTable* newTable = new LayoutTable(0);
(...skipping 14 matching lines...) Expand all
1344 const BorderValue& LayoutTable::tableEndBorderAdjoiningCell(const LayoutTableCel l* cell) const 1344 const BorderValue& LayoutTable::tableEndBorderAdjoiningCell(const LayoutTableCel l* cell) const
1345 { 1345 {
1346 ASSERT(cell->isFirstOrLastCellInRow()); 1346 ASSERT(cell->isFirstOrLastCellInRow());
1347 if (hasSameDirectionAs(cell->row())) 1347 if (hasSameDirectionAs(cell->row()))
1348 return style()->borderEnd(); 1348 return style()->borderEnd();
1349 1349
1350 return style()->borderStart(); 1350 return style()->borderStart();
1351 } 1351 }
1352 1352
1353 } 1353 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698