netsurf/render
Michael Drake 7b78ef3361 Style: Fix ignoring of STYLE elements with non-screen media.
We were handling the STYLE tag getting added in the
dom_default_action_DOMSubtreeModified_cb callback, however,
the media attribute dadn't been added by that point.

We now check it in the dom_default_action_DOMNodeInserted_cb
callback, at which time the media attribute is available for
checking.

Note, we should probably store the media type in the
html_stylesheet structure, but for now we just have an
`unused` boolean.

Also, it may be possible to optimise to avoid parsing non-
screen media STYLE element data if we could detect the media
earlier.
2016-09-24 12:44:28 +01:00
..
box_construct.c make box construction use correct ascii processing 2016-09-11 16:42:12 +01:00
box_normalise.c Allow include directories to be added by sub makefiles 2016-06-06 14:47:27 +01:00
box_textarea.c move key press enums and operations to their own header 2016-07-01 14:27:04 +01:00
box_textarea.h A load of refactoring of how content selection and input work. 2013-02-22 12:19:35 +00:00
box.c Allow include directories to be added by sub makefiles 2016-06-06 14:47:27 +01:00
box.h cleanup seevral doxygen warnings 2016-09-13 09:16:31 +01:00
font.c Allow include directories to be added by sub makefiles 2016-06-06 14:47:27 +01:00
font.h Put the font operations table alongside all the other core API 2014-10-13 11:56:31 +01:00
form_internal.h move the public form API 2016-06-14 12:39:54 +01:00
form.c use ascii processing when determining form charset 2016-09-12 22:43:39 +01:00
html_css_fetcher.c Fix size_t printf formatting 2016-03-17 22:00:54 +00:00
html_css.c Style: Fix ignoring of STYLE elements with non-screen media. 2016-09-24 12:44:28 +01:00
html_forms.c Update content to split public and internal API 2016-06-06 09:01:38 +01:00
html_interaction.c move key press enums and operations to their own header 2016-07-01 14:27:04 +01:00
html_internal.h Style: Fix ignoring of STYLE elements with non-screen media. 2016-09-24 12:44:28 +01:00
html_object.c Allow include directories to be added by sub makefiles 2016-06-06 14:47:27 +01:00
html_redraw.c cleanup seevral doxygen warnings 2016-09-13 09:16:31 +01:00
html_script.c Update content to split public and internal API 2016-06-06 09:01:38 +01:00
html.c Style: Fix ignoring of STYLE elements with non-screen media. 2016-09-24 12:44:28 +01:00
html.h Style: Fix ignoring of STYLE elements with non-screen media. 2016-09-24 12:44:28 +01:00
imagemap.c simplify box_extract_link interface and improve documentation 2016-09-11 12:19:56 +01:00
imagemap.h Remove nsurl include. 2015-02-26 17:05:12 +00:00
layout.c Allow include directories to be added by sub makefiles 2016-06-06 14:47:27 +01:00
layout.h cleanup seevral doxygen warnings 2016-09-13 09:16:31 +01:00
Makefile Remove completely dead file. 2014-05-31 10:45:32 +01:00
search.c move misc header into public API 2016-05-30 11:23:32 +01:00
search.h Improve Doxygen documentation 2014-11-08 12:35:11 +00:00
table.c Allow include directories to be added by sub makefiles 2016-06-06 14:47:27 +01:00
table.h Merge LibCSS port to trunk. 2009-07-23 23:05:34 +00:00
textplain.c move key press enums and operations to their own header 2016-07-01 14:27:04 +01:00
textplain.h move mouse and pointer state header into public API 2016-05-30 12:10:08 +01:00