OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |