2009-02-27 Dimitri Glazkov <dglazkov@chromium.org>
authordglazkov@chromium.org <dglazkov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 28 Feb 2009 00:01:19 +0000 (00:01 +0000)
committerdglazkov@chromium.org <dglazkov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 28 Feb 2009 00:01:19 +0000 (00:01 +0000)
        Reviewed by Darin Fisher.

        Fix scrubbing error -- a reversed condition.

        * bindings/v8/ScriptValue.h:
        (WebCore::ScriptValue::clear): Change early exit for empty value, not the opposite.

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

WebCore/ChangeLog
WebCore/bindings/v8/ScriptValue.h

index ad1603dced18efdbd7a9021d02ad8f96365cbebf..f8f9daa7012a7219100f7c6dc675ce8b2d60ac2c 100644 (file)
@@ -1,3 +1,12 @@
+2009-02-27  Dimitri Glazkov  <dglazkov@chromium.org>
+
+        Reviewed by Darin Fisher.
+
+        Fix scrubbing error -- a reversed condition.
+
+        * bindings/v8/ScriptValue.h:
+        (WebCore::ScriptValue::clear): Change early exit for empty value, not the opposite.
+
 2009-02-27  Jian Li  <jianli@chromium.org>
 
         Reviewed by Alexey Proskuryakov.
index 32fcdd42cd2ab4610bd614c1e4ede58d09e9d1ac..57474450634201f15fa234697a1c2dfb43ca4627 100644 (file)
@@ -107,7 +107,7 @@ public:
 
     void clear()
     {
-        if (!m_value.IsEmpty())
+        if (m_value.IsEmpty())
             return;
 
 #ifndef NDEBUG