2009-03-24 Dmitry Titov <dimich@chromium.org>
authordimich@chromium.org <dimich@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Mar 2009 17:18:32 +0000 (17:18 +0000)
committerdimich@chromium.org <dimich@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Mar 2009 17:18:32 +0000 (17:18 +0000)
        Reviewed by Dimitri Glazkov.

        https://bugs.webkit.org/show_bug.cgi?id=24689
        Fix Chromium compilation errors.

        * bindings/v8/WorkerContextExecutionProxy.cpp:
        (WebCore::WorkerContextExecutionProxy::FindOrCreateEventListener):
        (WebCore::WorkerContextExecutionProxy::RemoveEventListener):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@41941 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/bindings/v8/WorkerContextExecutionProxy.cpp

index 7fddb85..9569f09 100644 (file)
@@ -1,3 +1,14 @@
+2009-03-24  Dmitry Titov  <dimich@chromium.org>
+
+        Reviewed by Dimitri Glazkov.
+
+        https://bugs.webkit.org/show_bug.cgi?id=24689
+        Fix Chromium compilation errors.
+
+        * bindings/v8/WorkerContextExecutionProxy.cpp:
+        (WebCore::WorkerContextExecutionProxy::FindOrCreateEventListener):
+        (WebCore::WorkerContextExecutionProxy::RemoveEventListener):
+
 2009-03-24  Yury Semikhatsky  <yurys@chromium.org>
 
         Reviewed by Darin Adler.
index 24802b8..a46aa24 100644 (file)
@@ -324,7 +324,7 @@ PassRefPtr<V8EventListener> WorkerContextExecutionProxy::FindOrCreateEventListen
     if (!object->IsObject())
         return 0;
 
-    for (size_t index = ; index < m_listeners.size(); ++index) {
+    for (size_t index = 0; index < m_listeners.size(); ++index) {
         V8EventListener* el = m_listeners[index];
         if (el->isInline() == isInline && el->getListenerObject() == object)
             return el;
@@ -333,7 +333,7 @@ PassRefPtr<V8EventListener> WorkerContextExecutionProxy::FindOrCreateEventListen
         return NULL;
 
     // Create a new one, and add to cache.
-    RefPtr<V8EventListener> listener = V8WorkerContextEventListener::create(this, v8::Local<v8::Object>::Cast(object), isInline);
+    RefPtr<V8WorkerContextEventListener> listener = V8WorkerContextEventListener::create(this, v8::Local<v8::Object>::Cast(object), isInline);
     m_listeners.append(listener.get());
 
     return listener.release();
@@ -341,7 +341,7 @@ PassRefPtr<V8EventListener> WorkerContextExecutionProxy::FindOrCreateEventListen
 
 void WorkerContextExecutionProxy::RemoveEventListener(V8EventListener* listener)
 {
-    for (size_t index = ; index < m_listeners.size(); ++index) {
+    for (size_t index = 0; index < m_listeners.size(); ++index) {
         if (m_listeners[index] == listener) {
             m_listeners.remove(index);
             return;