OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1070 logicalHeight = bottom - top; | 1070 logicalHeight = bottom - top; |
1071 } | 1071 } |
1072 | 1072 |
1073 // Move x/y to our coordinates. | 1073 // Move x/y to our coordinates. |
1074 LayoutRect rect(minX, minY, width, height); | 1074 LayoutRect rect(minX, minY, width, height); |
1075 flipForWritingMode(rect); | 1075 flipForWritingMode(rect); |
1076 rect.moveBy(accumulatedOffset); | 1076 rect.moveBy(accumulatedOffset); |
1077 | 1077 |
1078 if (visibleToHitTestRequest(request) && locationInContainer.intersects(rect)
) { | 1078 if (visibleToHitTestRequest(request) && locationInContainer.intersects(rect)
) { |
1079 renderer().updateHitTestResult(result, flipForWritingMode(locationInCont
ainer.point() - toLayoutSize(accumulatedOffset))); // Don't add in m_x or m_y he
re, we want coords in the containing block's space. | 1079 renderer().updateHitTestResult(result, flipForWritingMode(locationInCont
ainer.point() - toLayoutSize(accumulatedOffset))); // Don't add in m_x or m_y he
re, we want coords in the containing block's space. |
1080 if (!result.addNodeToRectBasedTestResult(renderer().node(), request, loc
ationInContainer, rect)) | 1080 if (!result.addNodeToListBasedTestResult(renderer().node(), request, loc
ationInContainer, rect)) |
1081 return true; | 1081 return true; |
1082 } | 1082 } |
1083 | 1083 |
1084 return false; | 1084 return false; |
1085 } | 1085 } |
1086 | 1086 |
1087 void InlineFlowBox::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOf
fset, LayoutUnit lineTop, LayoutUnit lineBottom) | 1087 void InlineFlowBox::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOf
fset, LayoutUnit lineTop, LayoutUnit lineBottom) |
1088 { | 1088 { |
1089 InlineFlowBoxPainter(*this).paint(paintInfo, paintOffset, lineTop, lineBotto
m); | 1089 InlineFlowBoxPainter(*this).paint(paintInfo, paintOffset, lineTop, lineBotto
m); |
1090 } | 1090 } |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1339 ASSERT(child->prevOnLine() == prev); | 1339 ASSERT(child->prevOnLine() == prev); |
1340 prev = child; | 1340 prev = child; |
1341 } | 1341 } |
1342 ASSERT(prev == m_lastChild); | 1342 ASSERT(prev == m_lastChild); |
1343 #endif | 1343 #endif |
1344 } | 1344 } |
1345 | 1345 |
1346 #endif | 1346 #endif |
1347 | 1347 |
1348 } // namespace blink | 1348 } // namespace blink |
OLD | NEW |