[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/khtml/ecma
From:       Harri Porten <porten () kde ! org>
Date:       2004-10-11 10:39:16
Message-ID: 20041011103916.6114616BA2 () office ! kde ! org
[Download RAW message or body]

CVS commit by porten: 

use full url for Image.src

CCMAIL:83273-done@bugs.kde.org


  M +6 -5      kjs_html.cpp   1.273


--- kdelibs/khtml/ecma/kjs_html.cpp  #1.272:1.273
@@ -3405,13 +3405,14 @@ void Image::putValueProperty(ExecState *
 {
   switch (token) {
-  case Src: {
-    String str = value.toString(exec);
-    src = str.value();
+  case Src:
+    src = value.toString(exec);
     if ( img ) img->deref(this);
     img = static_cast<DOM::DocumentImpl*>( doc.handle() )->docLoader()->requestImage( src.string() );
 // ### img = doc ? doc->docLoader()->requestImage( src.string() ) : 0;
-    if ( img ) img->ref(this);
-    break;
+    if ( img ) {
+      img->ref(this);
+      src = img->url();
   }
+    break;
   case OnLoad:
     if ( m_onLoadListener )


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic