[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

kdecker kdecker at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 08:40:26 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit d4908157df3a911e20427549ed76f84598e3bd7d
Author: kdecker <kdecker at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed May 19 00:50:03 2004 +0000

            Reviewed by NOBODY (OOPS!).
    
            * khtml/xml/dom_stringimpl.cpp:
            (DOM::parseLength):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6627 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index 3c1df70..099a50a 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,3 +1,10 @@
+2004-05-18  Decker Kevin  <kdecker at apple.com>
+
+        Reviewed by NOBODY (OOPS!).
+
+        * khtml/xml/dom_stringimpl.cpp:
+        (DOM::parseLength):
+
 2004-05-18  Richard Williamson   <rjw at apple.com>
 
 	Added stubs to get the WebScriptObject for the window
diff --git a/WebCore/khtml/xml/dom_stringimpl.cpp b/WebCore/khtml/xml/dom_stringimpl.cpp
index a2c860b..a7c57b9 100644
--- a/WebCore/khtml/xml/dom_stringimpl.cpp
+++ b/WebCore/khtml/xml/dom_stringimpl.cpp
@@ -219,10 +219,14 @@ DOMStringImpl *DOMStringImpl::substring(uint pos, uint len)
     return new DOMStringImpl(s + pos, len);
 }
 
-static Length parseLength(QChar *s, unsigned int l)
+static Length parseLength(QChar *s, unsigned int l) //kevin was here
 {
     const QChar* last = s+l-1;
-
+    
+    if(!s->isDigit()) {
+        return Length(1,Relative);
+    }
+    
     if ( *last == QChar('%')) {
         // CSS allows one decimal after the point, like
         //  42.2%, but not 42.22%

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list