| 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 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1059 LayoutUnit bottom = min(rootBox->lineBottom(), top + logicalHeight); | 1059 LayoutUnit bottom = min(rootBox->lineBottom(), top + logicalHeight); |
| 1060 top = max(rootBox->lineTop(), top); | 1060 top = max(rootBox->lineTop(), top); |
| 1061 logicalHeight = bottom - top; | 1061 logicalHeight = bottom - top; |
| 1062 } | 1062 } |
| 1063 | 1063 |
| 1064 // Move x/y to our coordinates. | 1064 // Move x/y to our coordinates. |
| 1065 LayoutRect rect(minX, minY, width, height); | 1065 LayoutRect rect(minX, minY, width, height); |
| 1066 flipForWritingMode(rect); | 1066 flipForWritingMode(rect); |
| 1067 rect.moveBy(accumulatedOffset); | 1067 rect.moveBy(accumulatedOffset); |
| 1068 | 1068 |
| 1069 if (visibleToHitTesting() && locationInContainer.intersects(rect)) { | 1069 if (visibleToHitTestRequest(request) && locationInContainer.intersects(rect)
) { |
| 1070 renderer()->updateHitTestResult(result, flipForWritingMode(locationInCon
tainer.point() - toLayoutSize(accumulatedOffset))); // Don't add in m_x or m_y h
ere, we want coords in the containing block's space. | 1070 renderer()->updateHitTestResult(result, flipForWritingMode(locationInCon
tainer.point() - toLayoutSize(accumulatedOffset))); // Don't add in m_x or m_y h
ere, we want coords in the containing block's space. |
| 1071 if (!result.addNodeToRectBasedTestResult(renderer()->node(), request, lo
cationInContainer, rect)) | 1071 if (!result.addNodeToRectBasedTestResult(renderer()->node(), request, lo
cationInContainer, rect)) |
| 1072 return true; | 1072 return true; |
| 1073 } | 1073 } |
| 1074 | 1074 |
| 1075 return false; | 1075 return false; |
| 1076 } | 1076 } |
| 1077 | 1077 |
| 1078 void InlineFlowBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset,
LayoutUnit lineTop, LayoutUnit lineBottom) | 1078 void InlineFlowBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset,
LayoutUnit lineTop, LayoutUnit lineBottom) |
| 1079 { | 1079 { |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1660 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::Rendering); | 1660 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::Rendering); |
| 1661 InlineBox::reportMemoryUsage(memoryObjectInfo); | 1661 InlineBox::reportMemoryUsage(memoryObjectInfo); |
| 1662 info.addMember(m_overflow, "overflow"); | 1662 info.addMember(m_overflow, "overflow"); |
| 1663 info.addMember(m_firstChild, "firstChild"); | 1663 info.addMember(m_firstChild, "firstChild"); |
| 1664 info.addMember(m_lastChild, "lastChild"); | 1664 info.addMember(m_lastChild, "lastChild"); |
| 1665 info.addMember(m_prevLineBox, "prevLineBox"); | 1665 info.addMember(m_prevLineBox, "prevLineBox"); |
| 1666 info.addMember(m_nextLineBox, "nextLineBox"); | 1666 info.addMember(m_nextLineBox, "nextLineBox"); |
| 1667 } | 1667 } |
| 1668 | 1668 |
| 1669 } // namespace WebCore | 1669 } // namespace WebCore |
| OLD | NEW |