[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.0/kdelibs/khtml/ecma
From: Harri Porten <porten () kde ! org>
Date: 2008-03-14 21:03:27
Message-ID: 1205528607.809976.1868.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 785749 by porten:
Added JS pseudo-constructors for NodeList and HTMLCollection
M +2 -0 kjs_dom.cpp
M +2 -0 kjs_dom.h
M +6 -0 kjs_window.cpp
M +2 -1 kjs_window.h
--- branches/KDE/4.0/kdelibs/khtml/ecma/kjs_dom.cpp #785748:785749
@@ -681,6 +681,8 @@
KJS_IMPLEMENT_PROTOFUNC(DOMNodeListProtoFunc)
KJS_IMPLEMENT_PROTOTYPE("DOMNodeList",DOMNodeListProto,DOMNodeListProtoFunc)
+IMPLEMENT_PSEUDO_CONSTRUCTOR(NodeListPseudoCtor, "NodeList", DOMNodeListProto)
+
const ClassInfo DOMNodeList::info = { "NodeList", 0, 0, 0 };
DOMNodeList::DOMNodeList(ExecState *exec, DOM::NodeListImpl* l)
--- branches/KDE/4.0/kdelibs/khtml/ecma/kjs_dom.h #785748:785749
@@ -106,6 +106,8 @@
static JSValue *lengthGetter(ExecState *, JSObject*, const Identifier&, const \
PropertySlot&); };
+ DEFINE_PSEUDO_CONSTRUCTOR(NodeListPseudoCtor)
+
class DOMDocument : public DOMNode {
public:
// Build a DOMDocument
--- branches/KDE/4.0/kdelibs/khtml/ecma/kjs_window.cpp #785748:785749
@@ -325,6 +325,7 @@
Event Window::EventCtor DontDelete
Range Window::Range DontDelete
NodeFilter Window::NodeFilter DontDelete
+ NodeList Window::NodeList DontDelete
DOMException Window::DOMException DontDelete
RangeException Window::RangeException DontDelete
CSSRule Window::CSSRule DontDelete
@@ -399,6 +400,7 @@
HTMLLayerElement Window::HTMLLayerElementCtor DontDelete
HTMLFrameElement Window::HTMLFrameElementCtor DontDelete
HTMLIFrameElement Window::HTMLIFrameElementCtor DontDelete
+ HTMLCollection Window::HTMLCollectionCtor DontDelete
HTMLCanvasElement Window::HTMLCanvasElementCtor DontDelete
CSSStyleDeclaration Window::CSSStyleDeclarationCtor DontDelete
CanvasRenderingContext2D Window::Context2DCtor DontDelete
@@ -772,6 +774,8 @@
return getRangeConstructor(exec);
case NodeFilter:
return getNodeFilterConstructor(exec);
+ case NodeList:
+ return NodeListPseudoCtor::self(exec);
case DOMException:
return getDOMExceptionConstructor(exec);
case RangeException:
@@ -890,6 +894,8 @@
return HTMLFrameElementPseudoCtor::self(exec);
case HTMLIFrameElementCtor:
return HTMLIFrameElementPseudoCtor::self(exec);
+ case HTMLCollectionCtor:
+ return HTMLCollectionPseudoCtor::self(exec);
case HTMLCanvasElementCtor:
return HTMLCanvasElementPseudoCtor::self(exec);
case Context2DCtor:
--- branches/KDE/4.0/kdelibs/khtml/ecma/kjs_window.h #785748:785749
@@ -139,7 +139,7 @@
virtual const ClassInfo* classInfo() const { return &info; }
static const ClassInfo info;
enum { Closed, Crypto, DefaultStatus, Status, Document, Node, EventCtor, Range,
- NodeFilter, DOMException, RangeException, CSSRule, Frames, _History, \
_External, Event, InnerHeight, + NodeFilter, NodeList, DOMException, \
RangeException, CSSRule, Frames, _History, _External, Event, \
InnerHeight,
InnerWidth, Length, _Location, Navigate, Name, _Navigator, _Konqueror, \
ClientInformation,
OffscreenBuffering, Opener, OuterHeight, OuterWidth, PageXOffset, \
PageYOffset,
Parent, Personalbar, ScreenX, ScreenY, Scrollbars, Scroll, ScrollBy,
@@ -171,6 +171,7 @@
HTMLTableElementCtor, HTMLTableCaptionElementCtor, \
HTMLTableColElementCtor,
HTMLTableSectionElementCtor, HTMLTableRowElementCtor, \
HTMLTableCellElementCtor,
HTMLFrameSetElementCtor, HTMLLayerElementCtor, HTMLFrameElementCtor, \
HTMLIFrameElementCtor, + HTMLCollectionCtor,
CSSStyleDeclarationCtor, HTMLCanvasElementCtor, Context2DCtor};
WindowQObject *winq;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic