summaryrefslogtreecommitdiff
path: root/render/box_construct.c
Commit message (Collapse)AuthorAgeFilesLines
* move html and text content handlers where they belongVincent Sanders2018-05-101-3137/+0
|
* CSS computed style composition: Update for new CSS units.Michael Drake2018-01-051-6/+17
| | | | | | | Since the nscss_compute_font_size callback now needs to convert new units to absolute values, and some of these units require info from the root element's style, there are knock-on changes to ensure that the required info is available where its needed.
* CSS: Wrappers for computed style getters that return unsupported values.Michael Drake2017-10-201-13/+14
| | | | We don't yet handle the Flexbox-related values for certain properties.
* Use coccinelle to change logging macro calls in c filesVincent Sanders2017-09-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | for F in $(git ls-files '*.c');do spatch --sp-file foo.cocci --in-place ${F};done @@ expression E; @@ -LOG(E); +NSLOG(netsurf, INFO, E); @@ expression E, E1; @@ -LOG(E, E1); +NSLOG(netsurf, INFO, E, E1); @@ expression E, E1, E2; @@ -LOG(E, E1, E2); +NSLOG(netsurf, INFO, E, E1, E2); @@ expression E, E1, E2, E3; @@ -LOG(E, E1, E2, E3); +NSLOG(netsurf, INFO, E, E1, E2, E3); @@ expression E, E1, E2, E3, E4; @@ -LOG(E, E1, E2, E3, E4); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4); @@ expression E, E1, E2, E3, E4, E5; @@ -LOG(E, E1, E2, E3, E4, E5); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5); @@ expression E, E1, E2, E3, E4, E5, E6; @@ -LOG(E, E1, E2, E3, E4, E5, E6); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6); @@ expression E, E1, E2, E3, E4, E5, E6, E7; @@ -LOG(E, E1, E2, E3, E4, E5, E6, E7); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6, E7);
* HTML layout: Extend :after pseudo element handling to cover display:table.Michael Drake2017-04-261-2/+5
| | | | | | This is used in a common clearfix variant. http://nicolasgallagher.com/micro-clearfix-hack/
* rationalise use of utils/utils.h headerVincent Sanders2017-01-191-1/+0
|
* move plot style header to netsurf include directoryVincent Sanders2017-01-131-2/+3
| | | | | move plotter style header and adjust all callers to use only what they actually require.
* complete transition to locale independant core operationVincent Sanders2016-09-291-6/+5
| | | | | | | | | | | | The netsurf core no longer uses any locale dependant operations excepting the mall number or cases where such operations are explicitly wanted. the netsurf_init now calls setlocale with the empty string and lets the c library setup as per its specific implementation. any core functionality that specificaly processes ascii text must use the utils/ascii.h header to do so.
* make box construction use correct ascii processingVincent Sanders2016-09-111-57/+66
|
* simplify box_extract_link interface and improve documentationVincent Sanders2016-09-111-26/+19
|
* Allow include directories to be added by sub makefilesVincent Sanders2016-06-061-2/+2
|
* move misc header into public APIVincent Sanders2016-05-301-1/+1
|
* move the CSS content handlerVincent Sanders2016-05-261-4/+3
|
* Split utils header into string functions and everything elseVincent Sanders2016-04-211-6/+7
| | | | | split out the string handling API from the rest of the utils header and fix up all the fallout.
* complete the rename of the gui browser tableVincent Sanders2016-04-161-2/+2
| | | | | | When the operations tables were created the browser table was renamed to miscellaneous except the actual rename patch was never applied, this fixes that situation.
* Revert "Fix memory leak in error handling"Vincent Sanders2016-03-161-1/+0
| | | | | | This reverts commit c53be108924ed460aad35bb30c5c88a849bded20. Issue tracked in bug 2443
* Fix memory leak in error handlingVincent Sanders2016-03-141-0/+1
| | | | | error handling during form gadget construction could leak, this fixes the leak on error. Fixes coverity CID 1109875
* Layout: Don't generate :before and :after boxes for replaced elements.Michael Drake2016-02-091-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | In CSS 2.1 this was undefined. CSS 2.1 -- 12.1 The :before and :after pseudo-elements Note. This specification does not fully define the interaction of :before and :after with replaced elements (such as IMG in HTML). This will be defined in more detail in a future specification. -- https://www.w3.org/TR/CSS21/generate.html#before-after-content In CSS 3 the :before and :after generated content boxes are not allowed on replaced elements. CSS 3 Generated and Replaced Content Module 12. Replaced content The box model defines different rules for the layout of replaced elements than normal elements. Replaced elements do not have '::before' and '::after' pseudo-elements; the 'content' property in the case of replaced content replaces the entire contents of the element's box. -- https://www.w3.org/TR/css3-content/#replacedContent
* Split out presentational hints handling.Michael Drake2016-02-051-1/+2
|
* Spaces to tabs.Michael Drake2016-01-291-1/+1
|
* Ensure constant javascript_enabled for HTML contents.Michael Drake2016-01-211-2/+2
| | | | | | | | | | | | | | | | Now we take the value of the javascript_enabled option when the content is created. We then use the content's script_enabled boolean everywhere else. This prevents us getting inconsistent values for javascript_enabled if a user toggles the setting while a page is loading. It was read frequently during box construction, and also the parser's script enabled setting could change where we handled a change of encoding. Now we only care about the setting of the javascript_enabled option at time of html_content creation.
* Pass html_content to box_extract_link.Michael Drake2016-01-211-11/+12
|
* Fix dom document leak for framesets.Michael Drake2015-10-311-0/+5
|
* fix gadget resource leak (coverity #1109875)Vincent Sanders2015-09-071-0/+1
|
* Change LOG() macro to be varadicVincent Sanders2015-05-281-1/+1
| | | | | | | | | | | | This changes the LOG macro to be varadic removing the need for all callsites to have double bracketing and allows for future improvement on how we use the logging macros. The callsites were changed with coccinelle and the changes checked by hand. Compile tested for several frontends but not all. A formatting annotation has also been added which allows the compiler to check the parameters and types passed to the logging.
* release gadget allocation on error path (Coverity 1109875)Vincent Sanders2014-11-301-0/+1
|
* Doxygen cleanupsVincent Sanders2014-11-121-2/+2
|
* Doxygen cleanupsVincent Sanders2014-11-121-5/+6
|
* Make most of the form API internal to the html renderer.Vincent Sanders2014-11-111-1/+1
| | | | | | Very little of the form API needed exposing outside of the renderer. This makes the form API that may be used by frontends obvious and limited.
* Doxygen warning fixesVincent Sanders2014-11-101-4/+4
|
* address even more potential leaks on error path in box_select (coverity 1109875)Vincent Sanders2014-11-101-1/+3
|
* fix leak of gadget on error path. (coverity 1109875)Vincent Sanders2014-11-101-2/+6
|
* Add bw function to get scrollbar type.Michael Drake2014-10-251-7/+7
|
* Update the core to use the split operations table headersVincent Sanders2014-10-161-1/+2
| | | | Second in the series to decouple the core API usage from the frontends.
* Remove trailing whitespace.Michael Drake2014-10-151-93/+93
|
* Stop invalid background image URL from preventing page load.Michael Drake2014-09-251-9/+10
| | | | | Stops url(http://) from causing page load to fail with warning message of "boxconvert".
* Resolve relative URLs in inline CSS relative to document's base URL, rather ↵Michael Drake2014-09-181-1/+1
| | | | | | | | than its content URL. This means passing the base URL as the URL param to LibCSS's css_stylesheet_create, rather than the URL of the source of the style data.
* Restrict 'drill down' to specific box types.Michael Drake2014-07-181-2/+10
|
* Fix bug #2154: List numbering.Michael Drake2014-07-181-4/+13
| | | | | Previous list item box may not always be last child of parent. Search its previous children until a list item is found.
* remove unecessary utils/url.h includesVincent Sanders2014-05-091-1/+0
|
* move scheduleing into browser operation tableVincent Sanders2014-03-091-9/+9
|
* Gadgets can exisit outside forms, so now they store their own ref to the ↵Michael Drake2014-02-171-0/+4
| | | | containing html content.
* Use corestrings in box construction.Michael Drake2014-01-241-162/+42
|
* Ensure first option gets selected when the markup doesn't specify any ↵Michael Drake2014-01-241-0/+2
| | | | options as selected.
* Reflect changes to select boxes into the DOMDaniel Silverstone2014-01-041-1/+1
|
* Fix longstanding bug where floating root element caused assertion. Bug #394.Michael Drake2014-01-041-4/+7
|
* Make nscss_get_style return completed computed styles. Now matches ↵Michael Drake2013-12-191-51/+2
| | | | nscss_get_blank_style, and no need for anything outside css/select.c to see partial computed styles.
* Update for new libcss API.Michael Drake2013-12-131-4/+2
|
* Squash Coverity #1109879 - Resource leak.Michael Drake2013-10-251-2/+6
|
* Fix leak of frame element name.Michael Drake2013-10-251-0/+3
|