Subversion Repositories Kolibri OS

Rev

Rev 4364 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4364 Rev 5043
Line 285... Line 285...
285
	js_fire_event(c->jscontext, "load", c->document, NULL);
285
	js_fire_event(c->jscontext, "load", c->document, NULL);
Line 286... Line 286...
286
 
286
 
287
	/* convert dom tree to box tree */
287
	/* convert dom tree to box tree */
288
	LOG(("DOM to box (%p)", c));
288
	LOG(("DOM to box (%p)", c));
-
 
289
	content_set_status(&c->base, messages_get("Processing"));
289
	content_set_status(&c->base, messages_get("Processing"));
290
	/* LOG(("After content_set_status")); */
290
	msg_data.explicit_status_text = NULL;
291
	msg_data.explicit_status_text = NULL;
-
 
292
	content_broadcast(&c->base, CONTENT_MSG_STATUS, msg_data);
Line 291... Line 293...
291
	content_broadcast(&c->base, CONTENT_MSG_STATUS, msg_data);
293
	/* LOG(("After content_broadcast")); */
-
 
294
 
-
 
295
	exc = dom_document_get_document_element(c->document, (void *) &html);
292
 
296
	/* LOG(("After get_document_element")); */
293
	exc = dom_document_get_document_element(c->document, (void *) &html);
297
 
294
	if ((exc != DOM_NO_ERR) || (html == NULL)) {
298
	if ((exc != DOM_NO_ERR) || (html == NULL)) {
295
		LOG(("error retrieving html element from dom"));
299
		LOG(("error retrieving html element from dom"));
296
		content_broadcast_errorcode(&c->base, NSERROR_DOM);
300
		content_broadcast_errorcode(&c->base, NSERROR_DOM);
297
		content_set_error(&c->base);
301
		content_set_error(&c->base);
Line 298... Line 302...
298
		return;
302
		return;
-
 
303
	}
-
 
304
	
299
	}
305
	error = dom_to_box(html, c, html_box_convert_done);
300
 
306
	/* LOG(("After dom_to_box")); */
301
	error = dom_to_box(html, c, html_box_convert_done);
307
 
302
	if (error != NSERROR_OK) {
308
	if (error != NSERROR_OK) {
303
		dom_node_unref(html);
309
		dom_node_unref(html);
Line 1458... Line 1464...
1458
		break;
1464
		break;
Line 1459... Line 1465...
1459
 
1465
 
1460
	case CONTENT_MSG_DONE:
1466
	case CONTENT_MSG_DONE:
1461
		LOG(("done stylesheet slot %d '%s'", i,
1467
		LOG(("done stylesheet slot %d '%s'", i,
-
 
1468
				nsurl_access(hlcache_handle_get_url(css))));
1462
				nsurl_access(hlcache_handle_get_url(css))));
1469
		LOG(("Decrementing parent"));
1463
		parent->base.active--;
1470
		parent->base.active--;
1464
		LOG(("%d fetches active", parent->base.active));
1471
		LOG(("%d fetches active", parent->base.active));
Line 1465... Line 1472...
1465
		break;
1472
		break;
Line 1492... Line 1499...
1492
	default:
1499
	default:
1493
		assert(0);
1500
		assert(0);
1494
	}
1501
	}
Line 1495... Line 1502...
1495
 
1502
 
-
 
1503
	if (parent->base.active == 0)
-
 
1504
	  {
1496
	if (parent->base.active == 0)
1505
	    /* LOG(("parent->base.active == 0")); */
-
 
1506
	    html_finish_conversion(parent);
-
 
1507
	  }
-
 
1508
	
Line 1497... Line 1509...
1497
		html_finish_conversion(parent);
1509
	/* LOG(("Returning NSERROR_OK from html_redraw")); */
1498
 
1510
 
Line 1499... Line 1511...
1499
	return NSERROR_OK;
1511
	return NSERROR_OK;