Commit 5b4da231 authored by paroga@webkit.org's avatar paroga@webkit.org

Remove WTF namespace from isMainThread() calls

https://bugs.webkit.org/show_bug.cgi?id=65068

Reviewed by Sam Weinig.

Because of the using WTF::isMainThread in the header there is no
reason to include the namespace name when calling this function.

* bindings/js/JSMainThreadExecState.h:
* bindings/v8/DOMDataStore.cpp:
* bindings/v8/V8Binding.cpp:
* bindings/v8/V8DOMMap.cpp:
* bindings/v8/V8DOMWrapper.h:
* page/DOMWindow.cpp:
* page/History.cpp:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91641 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 1df8adf3
2011-07-23 Patrick Gansterer <paroga@webkit.org>
Remove WTF namespace from isMainThread() calls
https://bugs.webkit.org/show_bug.cgi?id=65068
Reviewed by Sam Weinig.
Because of the using WTF::isMainThread in the header there is no
reason to include the namespace name when calling this function.
* bindings/js/JSMainThreadExecState.h:
* bindings/v8/DOMDataStore.cpp:
* bindings/v8/V8Binding.cpp:
* bindings/v8/V8DOMMap.cpp:
* bindings/v8/V8DOMWrapper.h:
* page/DOMWindow.cpp:
* page/History.cpp:
2011-07-23 Alok Priyadarshi <alokp@chromium.org>
Switching off acceleration for small canvas broke gpu tests
......@@ -38,7 +38,7 @@ class JSMainThreadExecState {
public:
static JSC::ExecState* currentState()
{
ASSERT(WTF::isMainThread());
ASSERT(isMainThread());
return s_mainThreadState;
};
......@@ -61,13 +61,13 @@ protected:
explicit JSMainThreadExecState(JSC::ExecState* exec)
: m_previousState(s_mainThreadState)
{
ASSERT(WTF::isMainThread());
ASSERT(isMainThread());
s_mainThreadState = exec;
};
~JSMainThreadExecState()
{
ASSERT(WTF::isMainThread());
ASSERT(isMainThread());
s_mainThreadState = m_previousState;
}
......
......@@ -141,7 +141,7 @@ void DOMDataStore::weakActiveDOMObjectCallback(v8::Persistent<v8::Value> v8Objec
void DOMDataStore::weakNodeCallback(v8::Persistent<v8::Value> value, void* domObject)
{
ASSERT(WTF::isMainThread());
ASSERT(isMainThread());
Node* node = static_cast<Node*>(domObject);
// Node wrappers must be JS objects.
......
......@@ -419,7 +419,7 @@ String int32ToWebCoreStringFast(int value)
{
// Caching of small strings below is not thread safe: newly constructed AtomicString
// are not safely published.
ASSERT(WTF::isMainThread());
ASSERT(isMainThread());
// Most numbers used are <= 100. Even if they aren't used there's very little cost in using the space.
const int kLowNumbers = 100;
......@@ -440,7 +440,7 @@ String int32ToWebCoreStringFast(int value)
String int32ToWebCoreString(int value)
{
// If we are on the main thread (this should always true for non-workers), call the faster one.
if (WTF::isMainThread())
if (isMainThread())
return int32ToWebCoreStringFast(value);
return String::number(value);
}
......
......@@ -86,7 +86,7 @@ void removeAllDOMObjects()
v8::HandleScope scope;
// The DOM objects with the following types only exist on the main thread.
if (WTF::isMainThread()) {
if (isMainThread()) {
// Remove all DOM nodes.
DOMData::removeObjectsFromWrapperMap<Node>(&store, store.domNodeMap());
......
......@@ -127,7 +127,7 @@ namespace WebCore {
static v8::Handle<v8::Object> getWrapper(Node* node)
{
ASSERT(WTF::isMainThread());
ASSERT(isMainThread());
if (LIKELY(!IsolatedWorld::count())) {
v8::Persistent<v8::Object>* wrapper = node->wrapper();
if (wrapper)
......
......@@ -919,7 +919,7 @@ void DOMWindow::close(ScriptExecutionContext* context)
return;
if (context) {
ASSERT(WTF::isMainThread());
ASSERT(isMainThread());
Frame* activeFrame = static_cast<Document*>(context)->frame();
if (!activeFrame)
return;
......
......@@ -96,7 +96,7 @@ void History::go(ScriptExecutionContext* context, int distance)
if (!m_frame)
return;
ASSERT(WTF::isMainThread());
ASSERT(isMainThread());
Frame* activeFrame = static_cast<Document*>(context)->frame();
if (!activeFrame)
return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment