| 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 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 if (node->isFirstLetterPseudoElement()) { | 148 if (node->isFirstLetterPseudoElement()) { |
| 149 FirstLetterPseudoElement* pseudo = toFirstLetterPseudoElement(node); | 149 FirstLetterPseudoElement* pseudo = toFirstLetterPseudoElement(node); |
| 150 LayoutObject* nextLayoutObject = FirstLetterPseudoElement::firstLetterTe
xtLayoutObject(*pseudo); | 150 LayoutObject* nextLayoutObject = FirstLetterPseudoElement::firstLetterTe
xtLayoutObject(*pseudo); |
| 151 if (!nextLayoutObject) | 151 if (!nextLayoutObject) |
| 152 return nullptr; | 152 return nullptr; |
| 153 node = nextLayoutObject->node(); | 153 node = nextLayoutObject->node(); |
| 154 } | 154 } |
| 155 return (node && node->isTextNode()) ? toText(node) : nullptr; | 155 return (node && node->isTextNode()) ? toText(node) : nullptr; |
| 156 } | 156 } |
| 157 | 157 |
| 158 void LayoutTextFragment::updateHitTestResult(HitTestResult& result, const Layout
Point& point) | 158 void LayoutTextFragment::updateHitTestResult(HitTestResult& result, const Layout
Point& point, const LayoutRect& rect) |
| 159 { | 159 { |
| 160 if (result.innerNode()) | 160 if (result.innerNode()) |
| 161 return; | 161 return; |
| 162 | 162 |
| 163 LayoutObject::updateHitTestResult(result, point); | 163 LayoutObject::updateHitTestResult(result, point, rect); |
| 164 | 164 |
| 165 // If we aren't part of a first-letter element, or if we | 165 // If we aren't part of a first-letter element, or if we |
| 166 // are part of first-letter but we're the remaining text then return. | 166 // are part of first-letter but we're the remaining text then return. |
| 167 if (m_isRemainingTextLayoutObject || !firstLetterPseudoElement()) | 167 if (m_isRemainingTextLayoutObject || !firstLetterPseudoElement()) |
| 168 return; | 168 return; |
| 169 result.setInnerNode(firstLetterPseudoElement()); | 169 result.setInnerNode(firstLetterPseudoElement()); |
| 170 } | 170 } |
| 171 | 171 |
| 172 } // namespace blink | 172 } // namespace blink |
| OLD | NEW |