| 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 { | 314 { |
| 315 if (isLineBreak()) | 315 if (isLineBreak()) |
| 316 return false; | 316 return false; |
| 317 | 317 |
| 318 FloatPointWillBeLayoutPoint boxOrigin = locationIncludingFlipping(); | 318 FloatPointWillBeLayoutPoint boxOrigin = locationIncludingFlipping(); |
| 319 boxOrigin.moveBy(accumulatedOffset); | 319 boxOrigin.moveBy(accumulatedOffset); |
| 320 FloatRectWillBeLayoutRect rect(boxOrigin, size()); | 320 FloatRectWillBeLayoutRect rect(boxOrigin, size()); |
| 321 // FIXME: both calls to rawValue() below is temporary and should be removed
once the transition | 321 // FIXME: both calls to rawValue() below is temporary and should be removed
once the transition |
| 322 // to LayoutUnit-based types is complete (crbug.com/321237) | 322 // to LayoutUnit-based types is complete (crbug.com/321237) |
| 323 if (m_truncation != cFullTruncation && visibleToHitTestRequest(result.hitTes
tRequest()) && locationInContainer.intersects(rect.rawValue())) { | 323 if (m_truncation != cFullTruncation && visibleToHitTestRequest(result.hitTes
tRequest()) && locationInContainer.intersects(rect.rawValue())) { |
| 324 layoutObject().updateHitTestResult(result, flipForWritingMode(locationIn
Container.point() - toLayoutSize(accumulatedOffset))); | 324 layoutObject().updateHitTestResult(result, flipForWritingMode(locationIn
Container.point() - toLayoutSize(accumulatedOffset)), rect); |
| 325 if (!result.addNodeToListBasedTestResult(layoutObject().node(), location
InContainer, rect.rawValue())) | 325 if (!result.addNodeToListBasedTestResult(layoutObject().node(), location
InContainer, rect.rawValue())) |
| 326 return true; | 326 return true; |
| 327 } | 327 } |
| 328 result.shrinkValidityRect(rect); |
| 328 return false; | 329 return false; |
| 329 } | 330 } |
| 330 | 331 |
| 331 bool InlineTextBox::getEmphasisMarkPosition(const ComputedStyle& style, TextEmph
asisPosition& emphasisPosition) const | 332 bool InlineTextBox::getEmphasisMarkPosition(const ComputedStyle& style, TextEmph
asisPosition& emphasisPosition) const |
| 332 { | 333 { |
| 333 // This function returns true if there are text emphasis marks and they are
suppressed by ruby text. | 334 // This function returns true if there are text emphasis marks and they are
suppressed by ruby text. |
| 334 if (style.textEmphasisMark() == TextEmphasisMarkNone) | 335 if (style.textEmphasisMark() == TextEmphasisMarkNone) |
| 335 return false; | 336 return false; |
| 336 | 337 |
| 337 emphasisPosition = style.textEmphasisPosition(); | 338 emphasisPosition = style.textEmphasisPosition(); |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 printedCharacters = fprintf(stderr, "\t%s %p", obj.name(), &obj); | 552 printedCharacters = fprintf(stderr, "\t%s %p", obj.name(), &obj); |
| 552 const int layoutObjectCharacterOffset = 75; | 553 const int layoutObjectCharacterOffset = 75; |
| 553 for (; printedCharacters < layoutObjectCharacterOffset; printedCharacters++) | 554 for (; printedCharacters < layoutObjectCharacterOffset; printedCharacters++) |
| 554 fputc(' ', stderr); | 555 fputc(' ', stderr); |
| 555 fprintf(stderr, "(%d,%d) \"%s\"\n", start(), start() + len(), value.utf8().d
ata()); | 556 fprintf(stderr, "(%d,%d) \"%s\"\n", start(), start() + len(), value.utf8().d
ata()); |
| 556 } | 557 } |
| 557 | 558 |
| 558 #endif | 559 #endif |
| 559 | 560 |
| 560 } // namespace blink | 561 } // namespace blink |
| OLD | NEW |