2009-02-10 Dimitri Glazkov <dglazkov@chromium.org>
authordglazkov@chromium.org <dglazkov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Feb 2009 22:26:20 +0000 (22:26 +0000)
committerdglazkov@chromium.org <dglazkov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Feb 2009 22:26:20 +0000 (22:26 +0000)
        Reviewed by Mark Rowe.

        https://bugs.webkit.org/show_bug.cgi?id=23868
        Fix code style issues: removed 80-col wrapping, incorrect include style, if statement body on same line.

        * bindings/v8/custom/V8HTMLInputElementCustom.cpp:
        * bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp:

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

WebCore/ChangeLog
WebCore/bindings/v8/custom/V8HTMLInputElementCustom.cpp
WebCore/bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp

index 7deb29ce69637c3015be1623452f6b20e194bfb8..83bc4fe2fdc8d87bf4ddb1840ff0d1e55bcc7a75 100644 (file)
@@ -1,3 +1,13 @@
+2009-02-10  Dimitri Glazkov  <dglazkov@chromium.org>
+
+        Reviewed by Mark Rowe.
+
+        https://bugs.webkit.org/show_bug.cgi?id=23868
+        Fix code style issues: removed 80-col wrapping, incorrect include style, if statement body on same line.
+
+        * bindings/v8/custom/V8HTMLInputElementCustom.cpp:
+        * bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp:
+
 2009-02-10  Dimitri Glazkov  <dglazkov@chromium.org>
 
         Reviewed by Eric Seidel.
index 0b189f0f835f170d994c5491acc7cd44400c905d..1f2c6f3ac865afbf0f21207e954254a76b0cdcee 100644 (file)
@@ -28,8 +28,7 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <config.h>
-
+#include "config.h"
 #include "HTMLInputElement.h"
 
 #include "V8Binding.h"
@@ -45,9 +44,7 @@ ACCESSOR_GETTER(HTMLInputElementSelectionStart)
     HTMLInputElement* imp = V8Proxy::DOMWrapperToNode<HTMLInputElement>(holder);
 
     if (!imp->canHaveSelection()) {
-        V8Proxy::ThrowError(V8Proxy::TYPE_ERROR,
-            "Accessing selectionStart on an input element that "
-            "cannot have a selection.");
+        V8Proxy::ThrowError(V8Proxy::TYPE_ERROR, "Accessing selectionStart on an input element that cannot have a selection.");
         return v8::Undefined();
     }
 
@@ -62,9 +59,7 @@ ACCESSOR_SETTER(HTMLInputElementSelectionStart)
     HTMLInputElement* imp = V8Proxy::DOMWrapperToNode<HTMLInputElement>(holder);
 
     if (!imp->canHaveSelection()) {
-        V8Proxy::ThrowError(V8Proxy::TYPE_ERROR, 
-            "Accessing selectionStart on an input element that "
-            "cannot have a selection.");
+        V8Proxy::ThrowError(V8Proxy::TYPE_ERROR, "Accessing selectionStart on an input element that cannot have a selection.");
         return;
     }
     imp->setSelectionStart(value->Int32Value());
@@ -77,9 +72,7 @@ ACCESSOR_GETTER(HTMLInputElementSelectionEnd)
     HTMLInputElement* imp = V8Proxy::DOMWrapperToNode<HTMLInputElement>(holder);
 
     if (!imp->canHaveSelection()) {
-        V8Proxy::ThrowError(V8Proxy::TYPE_ERROR,
-            "Accessing selectionEnd on an input element that "
-            "cannot have a selection.");
+        V8Proxy::ThrowError(V8Proxy::TYPE_ERROR, "Accessing selectionEnd on an input element that cannot have a selection.");
         return v8::Undefined();
     }
 
@@ -94,9 +87,7 @@ ACCESSOR_SETTER(HTMLInputElementSelectionEnd)
     HTMLInputElement* imp = V8Proxy::DOMWrapperToNode<HTMLInputElement>(holder);
 
     if (!imp->canHaveSelection()) {
-        V8Proxy::ThrowError(V8Proxy::TYPE_ERROR,
-            "Accessing selectionEnd on an input element that "
-            "cannot have a selection.");
+        V8Proxy::ThrowError(V8Proxy::TYPE_ERROR, "Accessing selectionEnd on an input element that cannot have a selection.");
         return;
     }
     imp->setSelectionEnd(value->Int32Value());
@@ -109,9 +100,7 @@ CALLBACK_FUNC_DECL(HTMLInputElementSetSelectionRange)
     HTMLInputElement* imp = V8Proxy::DOMWrapperToNode<HTMLInputElement>(holder);
 
     if (!imp->canHaveSelection()) {
-        V8Proxy::ThrowError(V8Proxy::TYPE_ERROR,
-            "Calling setSelectionRange on an input element that "
-            "cannot have a selection.");
+        V8Proxy::ThrowError(V8Proxy::TYPE_ERROR, "Calling setSelectionRange on an input element that cannot have a selection.");
         return v8::Undefined();
     }
     int start = args[0]->Int32Value();
index 51d4abe9dac22d7777fab75e95ea2eb0e94fff73..65d5e8f0d88d97715d11073011141b00ecdc1c6a 100644 (file)
@@ -28,8 +28,7 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <config.h>
-
+#include "config.h"
 #include "HTMLOptionsCollection.h"
 
 #include "ExceptionCode.h"
@@ -43,9 +42,7 @@ namespace WebCore {
 ACCESSOR_GETTER(HTMLOptionsCollectionLength)
 {
     INC_STATS("DOM.HTMLOptionsCollection.length._get");
-    HTMLOptionsCollection* imp =
-        V8Proxy::ToNativeObject<HTMLOptionsCollection>(
-        V8ClassIndex::HTMLOPTIONSCOLLECTION, info.Holder());
+    HTMLOptionsCollection* imp = V8Proxy::ToNativeObject<HTMLOptionsCollection>(V8ClassIndex::HTMLOPTIONSCOLLECTION, info.Holder());
     int v = imp->length();
     return v8::Integer::New(v);
 }
@@ -53,9 +50,7 @@ ACCESSOR_GETTER(HTMLOptionsCollectionLength)
 ACCESSOR_SETTER(HTMLOptionsCollectionLength)
 {
     INC_STATS("DOM.HTMLOptionsCollection.length._set");
-    HTMLOptionsCollection* imp =
-        V8Proxy::ToNativeObject<HTMLOptionsCollection>(
-        V8ClassIndex::HTMLOPTIONSCOLLECTION, info.Holder());
+    HTMLOptionsCollection* imp = V8Proxy::ToNativeObject<HTMLOptionsCollection>(V8ClassIndex::HTMLOPTIONSCOLLECTION, info.Holder());
     double v = value->NumberValue();
     unsigned newLength = 0;
     ExceptionCode ec = 0;
@@ -67,7 +62,8 @@ ACCESSOR_SETTER(HTMLOptionsCollectionLength)
         else
             newLength = static_cast<unsigned>(v);
     }
-    if (!ec) imp->setLength(value->Uint32Value(), ec);
+    if (!ec)
+        imp->setLength(value->Uint32Value(), ec);
     V8Proxy::SetDOMException(ec);
 }