summaryrefslogtreecommitdiff
path: root/render/box_construct.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Force root element box type to BOX_BLOCK.Michael Drake2013-07-101-2/+7
|
* move options includeVincent Sanders2013-05-281-1/+1
|
* Fix 3608298: only apply link hack if JS is disabled.John-Mark Bell2013-03-191-14/+17
|
* First pass at getting html forms to use textarea widget.Michael Drake2013-02-061-126/+38
| | | | | (Input element types text & password, and textarea element.) Can edit and submit forms, but there are loads of issues.
* make boxes keep reference to the DOM node that causes themVincent Sanders2012-11-301-1/+4
|
* Improve html renderer error reportingVincent Sanders2012-11-261-6/+7
|
* Fix frame name allocation.John-Mark Bell2012-10-061-1/+1
|
* More talloc ctx fixup.Michael Drake2012-10-051-2/+3
|
* Need to use content->bctx for talloc ref.Michael Drake2012-10-031-1/+1
|
* fix missing sizeof() in amiga buildVincent Sanders2012-10-031-1/+1
| | | | fix type warning by passing correct value
* reduce talloc usage to box tree layout onlyVincent Sanders2012-10-031-51/+63
|
* Variable already existed.Michael Drake2012-10-031-1/+1
|
* Don't convert spaces to non-breaking spaces inside white-space:pre. ↵Michael Drake2012-10-031-1/+13
| | | | Instead, handle not wrapping in layout.