mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
[spidermonkey] "Rewrite" document->dom
There is a small progress. Some items are displayed in Python's docs searching.
This commit is contained in:
parent
a6cb50e413
commit
87044f9499
@ -299,6 +299,15 @@ check_for_rerender(struct ecmascript_interpreter *interpreter, const char* text)
|
|||||||
struct document *document = doc_view->document;
|
struct document *document = doc_view->document;
|
||||||
struct session *ses = doc_view->session;
|
struct session *ses = doc_view->session;
|
||||||
struct cache_entry *cached = document->cached;
|
struct cache_entry *cached = document->cached;
|
||||||
|
#ifdef CONFIG_ECMASCRIPT_SMJS
|
||||||
|
if (interpreter->document_obj) {
|
||||||
|
dom_document *doc = JS::GetMaybePtrFromReservedSlot<dom_document>(interpreter->document_obj, 0);
|
||||||
|
|
||||||
|
if (doc) {
|
||||||
|
document->dom = doc;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!strcmp(text, "eval")) {
|
if (!strcmp(text, "eval")) {
|
||||||
struct ecmascript_string_list_item *item;
|
struct ecmascript_string_list_item *item;
|
||||||
|
Loading…
Reference in New Issue
Block a user