| Index: sky/engine/core/dom/Element.cpp
|
| diff --git a/sky/engine/core/dom/Element.cpp b/sky/engine/core/dom/Element.cpp
|
| index cd282835c4652e80ce0715b93d519a8c454bf0b6..2a9d24f901e6ec83e82b353daeb666eab1a6eba4 100644
|
| --- a/sky/engine/core/dom/Element.cpp
|
| +++ b/sky/engine/core/dom/Element.cpp
|
| @@ -1305,46 +1305,6 @@ void Element::dispatchFocusOutEvent(const AtomicString& eventType, Element* newF
|
| dispatchScopedEventDispatchMediator(FocusOutEventDispatchMediator::create(FocusEvent::create(eventType, true, false, document().domWindow(), 0, newFocusedElement)));
|
| }
|
|
|
| -String Element::textFromChildren()
|
| -{
|
| - Text* firstTextNode = 0;
|
| - bool foundMultipleTextNodes = false;
|
| - unsigned totalLength = 0;
|
| -
|
| - for (Node* child = firstChild(); child; child = child->nextSibling()) {
|
| - if (!child->isTextNode())
|
| - continue;
|
| - Text* text = toText(child);
|
| - if (!firstTextNode)
|
| - firstTextNode = text;
|
| - else
|
| - foundMultipleTextNodes = true;
|
| - unsigned length = text->data().length();
|
| - if (length > std::numeric_limits<unsigned>::max() - totalLength)
|
| - return emptyString();
|
| - totalLength += length;
|
| - }
|
| -
|
| - if (!firstTextNode)
|
| - return emptyString();
|
| -
|
| - if (firstTextNode && !foundMultipleTextNodes) {
|
| - firstTextNode->atomize();
|
| - return firstTextNode->data();
|
| - }
|
| -
|
| - StringBuilder content;
|
| - content.reserveCapacity(totalLength);
|
| - for (Node* child = firstTextNode; child; child = child->nextSibling()) {
|
| - if (!child->isTextNode())
|
| - continue;
|
| - content.append(toText(child)->data());
|
| - }
|
| -
|
| - ASSERT(content.length() == totalLength);
|
| - return content.toString();
|
| -}
|
| -
|
| // FIXME(sky): Remove pseudoElementSpecifier.
|
| RenderStyle* Element::computedStyle(PseudoId pseudoElementSpecifier)
|
| {
|
|
|