| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. |
| 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 953 bool isEndNode = node == endPosition.anchorNode(); | 953 bool isEndNode = node == endPosition.anchorNode(); |
| 954 if (node->isTextNode()) { | 954 if (node->isTextNode()) { |
| 955 Text* text = toText(node); | 955 Text* text = toText(node); |
| 956 const unsigned start = | 956 const unsigned start = |
| 957 isStartNode ? startPosition.offsetInContainerNode() : 0; | 957 isStartNode ? startPosition.offsetInContainerNode() : 0; |
| 958 const unsigned end = isEndNode ? endPosition.offsetInContainerNode() | 958 const unsigned end = isEndNode ? endPosition.offsetInContainerNode() |
| 959 : text->data().length(); | 959 : text->data().length(); |
| 960 const unsigned length = end - start; | 960 const unsigned length = end - start; |
| 961 | 961 |
| 962 concatTexts.append(text->data(), start, length); | 962 concatTexts.append(text->data(), start, length); |
| 963 lengthList.append(length); | 963 lengthList.push_back(length); |
| 964 textList.append(text); | 964 textList.push_back(text); |
| 965 } | 965 } |
| 966 | 966 |
| 967 if (isEndNode) | 967 if (isEndNode) |
| 968 break; | 968 break; |
| 969 } | 969 } |
| 970 | 970 |
| 971 if (concatTexts.length() == 0) | 971 if (concatTexts.length() == 0) |
| 972 return startPosition; | 972 return startPosition; |
| 973 | 973 |
| 974 int start, end; | 974 int start, end; |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1164 | 1164 |
| 1165 void TextControlElement::copyNonAttributePropertiesFromElement( | 1165 void TextControlElement::copyNonAttributePropertiesFromElement( |
| 1166 const Element& source) { | 1166 const Element& source) { |
| 1167 const TextControlElement& sourceElement = | 1167 const TextControlElement& sourceElement = |
| 1168 static_cast<const TextControlElement&>(source); | 1168 static_cast<const TextControlElement&>(source); |
| 1169 m_lastChangeWasUserEdit = sourceElement.m_lastChangeWasUserEdit; | 1169 m_lastChangeWasUserEdit = sourceElement.m_lastChangeWasUserEdit; |
| 1170 HTMLFormControlElement::copyNonAttributePropertiesFromElement(source); | 1170 HTMLFormControlElement::copyNonAttributePropertiesFromElement(source); |
| 1171 } | 1171 } |
| 1172 | 1172 |
| 1173 } // namespace blink | 1173 } // namespace blink |
| OLD | NEW |