X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fcore%2Fdom%2FCharacterData.cpp;h=23c0b9d1bd3a32045a6d2f2264e9220c38d3398a;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=fce49e276d46f1e3439bdf1bf98c42d9826a1e65;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/core/dom/CharacterData.cpp b/src/third_party/WebKit/Source/core/dom/CharacterData.cpp index fce49e2..23c0b9d 100644 --- a/src/third_party/WebKit/Source/core/dom/CharacterData.cpp +++ b/src/third_party/WebKit/Source/core/dom/CharacterData.cpp @@ -1,7 +1,7 @@ /* * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) - * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. + * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -22,7 +22,7 @@ #include "config.h" #include "core/dom/CharacterData.h" -#include "bindings/v8/ExceptionState.h" +#include "bindings/core/v8/ExceptionState.h" #include "core/dom/Document.h" #include "core/dom/ExceptionCode.h" #include "core/dom/MutationObserverInterestGroup.h" @@ -34,7 +34,7 @@ #include "core/inspector/InspectorInstrumentation.h" #include "wtf/CheckedArithmetic.h" -namespace WebCore { +namespace blink { void CharacterData::atomize() { @@ -76,8 +76,10 @@ void CharacterData::parserAppendData(const String& string) document().incDOMTreeVersion(); - if (parentNode()) - parentNode()->childrenChanged(); + if (parentNode()) { + ContainerNode::ChildrenChange change = {ContainerNode::TextChanged, previousSibling(), nextSibling(), ContainerNode::ChildrenChangeSourceParser}; + parentNode()->childrenChanged(change); + } } void CharacterData::appendData(const String& data) @@ -192,8 +194,10 @@ void CharacterData::didModifyData(const String& oldData) if (OwnPtrWillBeRawPtr mutationRecipients = MutationObserverInterestGroup::createForCharacterDataMutation(*this)) mutationRecipients->enqueueMutationRecord(MutationRecord::createCharacterData(this, oldData)); - if (parentNode()) - parentNode()->childrenChanged(); + if (parentNode()) { + ContainerNode::ChildrenChange change = {ContainerNode::TextChanged, previousSibling(), nextSibling(), ContainerNode::ChildrenChangeSourceAPI}; + parentNode()->childrenChanged(change); + } if (!isInShadowTree()) { if (document().hasListenerType(Document::DOMCHARACTERDATAMODIFIED_LISTENER)) @@ -213,4 +217,4 @@ bool CharacterData::offsetInCharacters() const return true; } -} // namespace WebCore +} // namespace blink