Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(562)

Unified Diff: sky/engine/core/dom/CharacterData.cpp

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/dom/Attr.h ('k') | sky/engine/core/dom/ChildNode.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/CharacterData.cpp
diff --git a/sky/engine/core/dom/CharacterData.cpp b/sky/engine/core/dom/CharacterData.cpp
index 4dc835f8cdb3fa655d86477616f4ec00a8dc7137..009b0d539a9b412dc6a79e38a6f3a2a7deb14c85 100644
--- a/sky/engine/core/dom/CharacterData.cpp
+++ b/sky/engine/core/dom/CharacterData.cpp
@@ -22,7 +22,7 @@
#include "sky/engine/config.h"
#include "sky/engine/core/dom/CharacterData.h"
-#include "sky/engine/bindings/core/v8/ExceptionState.h"
+#include "sky/engine/bindings2/exception_state.h"
#include "sky/engine/core/dom/Document.h"
#include "sky/engine/core/dom/ExceptionCode.h"
#include "sky/engine/core/dom/MutationObserverInterestGroup.h"
@@ -56,7 +56,7 @@ void CharacterData::setData(const String& data)
String CharacterData::substringData(unsigned offset, unsigned count, ExceptionState& exceptionState)
{
if (offset > length()) {
- exceptionState.throwDOMException(IndexSizeError, "The offset " + String::number(offset) + " is greater than the node's length (" + String::number(length()) + ").");
+ exceptionState.ThrowDOMException(IndexSizeError, "The offset " + String::number(offset) + " is greater than the node's length (" + String::number(length()) + ").");
return String();
}
@@ -90,7 +90,7 @@ void CharacterData::appendData(const String& data)
void CharacterData::insertData(unsigned offset, const String& data, ExceptionState& exceptionState, RecalcStyleBehavior recalcStyleBehavior)
{
if (offset > length()) {
- exceptionState.throwDOMException(IndexSizeError, "The offset " + String::number(offset) + " is greater than the node's length (" + String::number(length()) + ").");
+ exceptionState.ThrowDOMException(IndexSizeError, "The offset " + String::number(offset) + " is greater than the node's length (" + String::number(length()) + ").");
return;
}
@@ -105,7 +105,7 @@ void CharacterData::insertData(unsigned offset, const String& data, ExceptionSta
static bool validateOffsetCount(unsigned offset, unsigned count, unsigned length, unsigned& realCount, ExceptionState& exceptionState)
{
if (offset > length) {
- exceptionState.throwDOMException(IndexSizeError, "The offset " + String::number(offset) + " is greater than the node's length (" + String::number(length) + ").");
+ exceptionState.ThrowDOMException(IndexSizeError, "The offset " + String::number(offset) + " is greater than the node's length (" + String::number(length) + ").");
return false;
}
« no previous file with comments | « sky/engine/core/dom/Attr.h ('k') | sky/engine/core/dom/ChildNode.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698