| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999 Lars Knoll (knoll@kde.org) | 2 * (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Dirk Mueller (mueller@kde.org) | 3 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 } | 370 } |
| 371 | 371 |
| 372 bool InlineTextBox::nodeAtPoint(const HitTestRequest& request, HitTestResult& re
sult, const HitTestLocation& locationInContainer, const LayoutPoint& accumulated
Offset, LayoutUnit /* lineTop */, LayoutUnit /*lineBottom*/) | 372 bool InlineTextBox::nodeAtPoint(const HitTestRequest& request, HitTestResult& re
sult, const HitTestLocation& locationInContainer, const LayoutPoint& accumulated
Offset, LayoutUnit /* lineTop */, LayoutUnit /*lineBottom*/) |
| 373 { | 373 { |
| 374 if (isLineBreak()) | 374 if (isLineBreak()) |
| 375 return false; | 375 return false; |
| 376 | 376 |
| 377 FloatPoint boxOrigin = locationIncludingFlipping(); | 377 FloatPoint boxOrigin = locationIncludingFlipping(); |
| 378 boxOrigin.moveBy(accumulatedOffset); | 378 boxOrigin.moveBy(accumulatedOffset); |
| 379 FloatRect rect(boxOrigin, size()); | 379 FloatRect rect(boxOrigin, size()); |
| 380 if (m_truncation != cFullTruncation && visibleToHitTesting() && locationInCo
ntainer.intersects(rect)) { | 380 if (m_truncation != cFullTruncation && visibleToHitTestRequest(request) && l
ocationInContainer.intersects(rect)) { |
| 381 renderer()->updateHitTestResult(result, flipForWritingMode(locationInCon
tainer.point() - toLayoutSize(accumulatedOffset))); | 381 renderer()->updateHitTestResult(result, flipForWritingMode(locationInCon
tainer.point() - toLayoutSize(accumulatedOffset))); |
| 382 if (!result.addNodeToRectBasedTestResult(renderer()->node(), request, lo
cationInContainer, rect)) | 382 if (!result.addNodeToRectBasedTestResult(renderer()->node(), request, lo
cationInContainer, rect)) |
| 383 return true; | 383 return true; |
| 384 } | 384 } |
| 385 return false; | 385 return false; |
| 386 } | 386 } |
| 387 | 387 |
| 388 FloatSize InlineTextBox::applyShadowToGraphicsContext(GraphicsContext* context,
const ShadowData* shadow, const FloatRect& textRect, bool stroked, bool opaque,
bool horizontal) | 388 FloatSize InlineTextBox::applyShadowToGraphicsContext(GraphicsContext* context,
const ShadowData* shadow, const FloatRect& textRect, bool stroked, bool opaque,
bool horizontal) |
| 389 { | 389 { |
| 390 if (!shadow) | 390 if (!shadow) |
| (...skipping 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1630 | 1630 |
| 1631 void InlineTextBox::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const | 1631 void InlineTextBox::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const |
| 1632 { | 1632 { |
| 1633 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::Rendering); | 1633 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::Rendering); |
| 1634 InlineBox::reportMemoryUsage(memoryObjectInfo); | 1634 InlineBox::reportMemoryUsage(memoryObjectInfo); |
| 1635 info.addMember(m_prevTextBox, "prevTextBox"); | 1635 info.addMember(m_prevTextBox, "prevTextBox"); |
| 1636 info.addMember(m_nextTextBox, "nextTextBox"); | 1636 info.addMember(m_nextTextBox, "nextTextBox"); |
| 1637 } | 1637 } |
| 1638 | 1638 |
| 1639 } // namespace WebCore | 1639 } // namespace WebCore |
| OLD | NEW |