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

Unified Diff: Source/bindings/core/v8/Dictionary.cpp

Issue 398673003: Rename WebCore namespace to blink in bindings and web (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | « Source/bindings/core/v8/Dictionary.h ('k') | Source/bindings/core/v8/DictionaryHelperForBindings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/Dictionary.cpp
diff --git a/Source/bindings/core/v8/Dictionary.cpp b/Source/bindings/core/v8/Dictionary.cpp
index 9abe95a5a69589866e0c2abf28de017a18c9c988..a7f3589cae941b95b395f5e79b3fc0e7e33df617 100644
--- a/Source/bindings/core/v8/Dictionary.cpp
+++ b/Source/bindings/core/v8/Dictionary.cpp
@@ -57,7 +57,7 @@
#include "modules/speech/SpeechRecognitionResultList.h"
#include "wtf/MathExtras.h"
-namespace WebCore {
+namespace blink {
Dictionary::Dictionary()
: m_isolate(0)
@@ -96,7 +96,7 @@ bool Dictionary::isUndefinedOrNull() const
{
if (m_options.IsEmpty())
return true;
- return WebCore::isUndefinedOrNull(m_options);
+ return blink::isUndefinedOrNull(m_options);
}
bool Dictionary::hasProperty(const String& key) const
@@ -141,7 +141,7 @@ bool Dictionary::get(const String& key, v8::Local<v8::Value>& value) const
bool Dictionary::getWithUndefinedOrNullCheck(const String& key, String& value) const
{
v8::Local<v8::Value> v8Value;
- if (!getKey(key, v8Value) || WebCore::isUndefinedOrNull(v8Value))
+ if (!getKey(key, v8Value) || blink::isUndefinedOrNull(v8Value))
return false;
TOSTRING_DEFAULT(V8StringResource<>, stringValue, v8Value, false);
@@ -152,7 +152,7 @@ bool Dictionary::getWithUndefinedOrNullCheck(const String& key, String& value) c
bool Dictionary::getWithUndefinedOrNullCheck(const String& key, RefPtrWillBeMember<Element>& value) const
{
v8::Local<v8::Value> v8Value;
- if (!getKey(key, v8Value) || WebCore::isUndefinedOrNull(v8Value))
+ if (!getKey(key, v8Value) || blink::isUndefinedOrNull(v8Value))
return false;
value = V8Element::toNativeWithTypeCheck(m_isolate, v8Value);
@@ -162,7 +162,7 @@ bool Dictionary::getWithUndefinedOrNullCheck(const String& key, RefPtrWillBeMemb
bool Dictionary::getWithUndefinedOrNullCheck(const String& key, RefPtr<Path2D>& value) const
{
v8::Local<v8::Value> v8Value;
- if (!getKey(key, v8Value) || WebCore::isUndefinedOrNull(v8Value))
+ if (!getKey(key, v8Value) || blink::isUndefinedOrNull(v8Value))
return false;
value = V8Path2D::toNativeWithTypeCheck(m_isolate, v8Value);
@@ -220,7 +220,7 @@ bool Dictionary::convert(ConversionContext& context, const String& key, Dictiona
if (v8Value->IsObject())
return get(key, value);
- if (context.isNullable() && WebCore::isUndefinedOrNull(v8Value))
+ if (context.isNullable() && blink::isUndefinedOrNull(v8Value))
return true;
context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does not have a Dictionary type."));
@@ -301,4 +301,4 @@ void Dictionary::ConversionContext::throwTypeError(const String& detail)
exceptionState().throwTypeError(detail);
}
-} // namespace WebCore
+} // namespace blink
« no previous file with comments | « Source/bindings/core/v8/Dictionary.h ('k') | Source/bindings/core/v8/DictionaryHelperForBindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698