| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
| 7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1126 return true; | 1126 return true; |
| 1127 } | 1127 } |
| 1128 } | 1128 } |
| 1129 | 1129 |
| 1130 // Check our bounds next. For this purpose always assume that we can only be
hit in the | 1130 // Check our bounds next. For this purpose always assume that we can only be
hit in the |
| 1131 // foreground phase (which is true for replaced elements like images). | 1131 // foreground phase (which is true for replaced elements like images). |
| 1132 LayoutRect boundsRect = borderBoxRect(); | 1132 LayoutRect boundsRect = borderBoxRect(); |
| 1133 boundsRect.moveBy(adjustedLocation); | 1133 boundsRect.moveBy(adjustedLocation); |
| 1134 if (visibleToHitTestRequest(request) && action == HitTestForeground && locat
ionInContainer.intersects(boundsRect)) { | 1134 if (visibleToHitTestRequest(request) && action == HitTestForeground && locat
ionInContainer.intersects(boundsRect)) { |
| 1135 updateHitTestResult(result, locationInContainer.point() - toLayoutSize(a
djustedLocation)); | 1135 updateHitTestResult(result, locationInContainer.point() - toLayoutSize(a
djustedLocation)); |
| 1136 if (!result.addNodeToRectBasedTestResult(node(), request, locationInCont
ainer, boundsRect)) | 1136 if (!result.addNodeToListBasedTestResult(node(), request, locationInCont
ainer, boundsRect)) |
| 1137 return true; | 1137 return true; |
| 1138 } | 1138 } |
| 1139 | 1139 |
| 1140 return false; | 1140 return false; |
| 1141 } | 1141 } |
| 1142 | 1142 |
| 1143 void RenderBox::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOffset
) | 1143 void RenderBox::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOffset
) |
| 1144 { | 1144 { |
| 1145 BoxPainter(*this).paint(paintInfo, paintOffset); | 1145 BoxPainter(*this).paint(paintInfo, paintOffset); |
| 1146 } | 1146 } |
| (...skipping 3408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4555 computedValues.m_margins.m_end = marginEnd(); | 4555 computedValues.m_margins.m_end = marginEnd(); |
| 4556 | 4556 |
| 4557 setLogicalTop(oldLogicalTop); | 4557 setLogicalTop(oldLogicalTop); |
| 4558 setLogicalWidth(oldLogicalWidth); | 4558 setLogicalWidth(oldLogicalWidth); |
| 4559 setLogicalLeft(oldLogicalLeft); | 4559 setLogicalLeft(oldLogicalLeft); |
| 4560 setMarginLeft(oldMarginLeft); | 4560 setMarginLeft(oldMarginLeft); |
| 4561 setMarginRight(oldMarginRight); | 4561 setMarginRight(oldMarginRight); |
| 4562 } | 4562 } |
| 4563 | 4563 |
| 4564 } // namespace blink | 4564 } // namespace blink |
| OLD | NEW |