diff options
Diffstat (limited to 'khtml/ecma')
-rw-r--r-- | khtml/ecma/kjs_dom.cpp | 16 |
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()) |