зеркало из https://github.com/mozilla/pjs.git
move top_node and current_node into top_state, where they're invulnerable to the evil tactics of table layout
This commit is contained in:
Родитель
cf0182296e
Коммит
eeedb69b78
|
@ -404,7 +404,7 @@ lm_DOMGetDocumentElement(MochaDecoder *decoder, JSObject *docobj)
|
|||
*/
|
||||
|
||||
obj = DOM_NewNodeObject(decoder->js_context,
|
||||
top_state->doc_state->top_node);
|
||||
top_state->top_node);
|
||||
|
||||
doc->dom_documentElement = obj;
|
||||
return obj;
|
||||
|
|
|
@ -33,9 +33,8 @@ typedef struct DOM_HTMLElementPrivate {
|
|||
} DOM_HTMLElementPrivate;
|
||||
|
||||
#define ELEMENT_PRIV(e) ((DOM_HTMLElementPrivate *)(((DOM_Node *)(e))->data))
|
||||
#define CURRENT_NODE(d) ((DOM_Node *)(d->current_node))
|
||||
#define LAST_NODE(d) ((DOM_Node *)(d->last_node))
|
||||
#define TOP_NODE(d) ((DOM_Node *)(d->top_node))
|
||||
#define CURRENT_NODE(d) ((DOM_Node *)(d->top_state->current_node))
|
||||
#define TOP_NODE(d) ((DOM_Node *)(d->top_state->top_node))
|
||||
|
||||
DOM_Element *
|
||||
DOM_HTMLPopElementByType(TagType type, DOM_Element *node);
|
||||
|
|
Загрузка…
Ссылка в новой задаче