| 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 | 326 |
| 327 bool InlineTextBox::nodeAtPoint(const HitTestRequest& request, HitTestResult& re
sult, const HitTestLocation& locationInContainer, const LayoutPoint& accumulated
Offset, LayoutUnit /* lineTop */, LayoutUnit /*lineBottom*/) | 327 bool InlineTextBox::nodeAtPoint(const HitTestRequest& request, HitTestResult& re
sult, const HitTestLocation& locationInContainer, const LayoutPoint& accumulated
Offset, LayoutUnit /* lineTop */, LayoutUnit /*lineBottom*/) |
| 328 { | 328 { |
| 329 if (isLineBreak()) | 329 if (isLineBreak()) |
| 330 return false; | 330 return false; |
| 331 | 331 |
| 332 FloatPoint boxOrigin = locationIncludingFlipping(); | 332 FloatPoint boxOrigin = locationIncludingFlipping(); |
| 333 boxOrigin.moveBy(accumulatedOffset); | 333 boxOrigin.moveBy(accumulatedOffset); |
| 334 FloatRect rect(boxOrigin, size()); | 334 FloatRect rect(boxOrigin, size()); |
| 335 if (m_truncation != cFullTruncation && visibleToHitTestRequest(request) && l
ocationInContainer.intersects(rect)) { | 335 if (m_truncation != cFullTruncation && visibleToHitTestRequest(request) && l
ocationInContainer.intersects(rect)) { |
| 336 renderer().updateHitTestResult(result, flipForWritingMode(locationInCont
ainer.point() - toLayoutSize(accumulatedOffset))); | 336 renderer().updateHitTestResult(result, locationInContainer.point() - toL
ayoutSize(accumulatedOffset)); |
| 337 if (!result.addNodeToRectBasedTestResult(renderer().node(), request, loc
ationInContainer, rect)) | 337 if (!result.addNodeToRectBasedTestResult(renderer().node(), request, loc
ationInContainer, rect)) |
| 338 return true; | 338 return true; |
| 339 } | 339 } |
| 340 return false; | 340 return false; |
| 341 } | 341 } |
| 342 | 342 |
| 343 bool InlineTextBox::getEmphasisMarkPosition(RenderStyle* style, TextEmphasisPosi
tion& emphasisPosition) const | 343 bool InlineTextBox::getEmphasisMarkPosition(RenderStyle* style, TextEmphasisPosi
tion& emphasisPosition) const |
| 344 { | 344 { |
| 345 if (style->textEmphasisMark() == TextEmphasisMarkNone) | 345 if (style->textEmphasisMark() == TextEmphasisMarkNone) |
| 346 return false; | 346 return false; |
| (...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1395 printedCharacters = fprintf(stderr, "\t%s %p", obj.renderName(), &obj); | 1395 printedCharacters = fprintf(stderr, "\t%s %p", obj.renderName(), &obj); |
| 1396 const int rendererCharacterOffset = 24; | 1396 const int rendererCharacterOffset = 24; |
| 1397 for (; printedCharacters < rendererCharacterOffset; printedCharacters++) | 1397 for (; printedCharacters < rendererCharacterOffset; printedCharacters++) |
| 1398 fputc(' ', stderr); | 1398 fputc(' ', stderr); |
| 1399 fprintf(stderr, "(%d,%d) \"%s\"\n", start(), start() + len(), value.utf8().d
ata()); | 1399 fprintf(stderr, "(%d,%d) \"%s\"\n", start(), start() + len(), value.utf8().d
ata()); |
| 1400 } | 1400 } |
| 1401 | 1401 |
| 1402 #endif | 1402 #endif |
| 1403 | 1403 |
| 1404 } // namespace blink | 1404 } // namespace blink |
| OLD | NEW |