summaryrefslogtreecommitdiffstats
path: root/khtml/ecma
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-07 20:10:08 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-07 20:10:08 +0000
commitf7279a489b22c536c0cf5916abbe66390072d8b2 (patch)
tree59682a9f6772edb36e999f50a6b20a6a6d685033 /khtml/ecma
parentc8554ed8c29bbd676e1b48eb23c0ead827d8313f (diff)
downloadtdelibs-f7279a489b22c536c0cf5916abbe66390072d8b2.tar.gz
tdelibs-f7279a489b22c536c0cf5916abbe66390072d8b2.zip
* Imported all kdelibs bugfix patches from Chakra project
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1172682 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khtml/ecma')
-rw-r--r--khtml/ecma/kjs_dom.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/khtml/ecma/kjs_dom.cpp b/khtml/ecma/kjs_dom.cpp
index c96e99939..08afc6aab 100644
--- a/khtml/ecma/kjs_dom.cpp
+++ b/khtml/ecma/kjs_dom.cpp
@@ -335,26 +335,26 @@ Value DOMNode::getValueProperty(ExecState *exec, int token) const
switch (token) {
case OffsetLeft:
- return rend ? static_cast<Value>( Number( rend->offsetLeft() ) ) : Undefined();
+ return rend ? static_cast<Value>( Number( rend->offsetLeft() ) ) : Number(0);
case OffsetTop:
- return rend ? static_cast<Value>( Number( rend->offsetTop() ) ) : Undefined();
+ return rend ? static_cast<Value>( Number( rend->offsetTop() ) ) : Number(0);
case OffsetWidth:
- return rend ? static_cast<Value>( Number( rend->offsetWidth() ) ) : Undefined();
+ return rend ? static_cast<Value>( Number( rend->offsetWidth() ) ) : Number(0);
case OffsetHeight:
- return rend ? static_cast<Value>( Number( rend->offsetHeight() ) ) : Undefined();
+ return rend ? static_cast<Value>( Number( rend->offsetHeight() ) ) : Number(0);
case OffsetParent:
{
khtml::RenderObject* par = rend ? rend->offsetParent() : 0;
return getDOMNode( exec, par ? par->element() : 0 );
}
case ClientWidth:
- return rend ? static_cast<Value>( Number( rend->clientWidth() ) ) : Undefined();
+ return rend ? static_cast<Value>( Number( rend->clientWidth() ) ) : Number(0);
case ClientHeight:
- return rend ? static_cast<Value>( Number( rend->clientHeight() ) ) : Undefined();
+ return rend ? static_cast<Value>( Number( rend->clientHeight() ) ) : Number(0);
case ScrollWidth:
- return rend ? static_cast<Value>( Number(rend->scrollWidth()) ) : Undefined();
+ return rend ? static_cast<Value>( Number(rend->scrollWidth()) ) : Number(0);
case ScrollHeight:
- return rend ? static_cast<Value>( Number(rend->scrollHeight()) ) : Undefined();
+ return rend ? static_cast<Value>( Number(rend->scrollHeight()) ) : Number(0);
case ScrollLeft:
if (rend && rend->layer()) {
if (rend->isRoot() && !rend->style()->hidesOverflow())