Michael Drake
8de5625193
HTML CSS handler: event->data.error is invalid for errorcode.
2017-08-28 12:12:08 +01:00
Michael Drake
c0205478c0
HTML object hlcache callback: Ensure final fetch completion triggers reformat.
...
Even if the final fetch finished with ERRORCODE.
2017-08-28 12:06:09 +01:00
Michael Drake
2ad990f3d5
HTML object hlcache callback: Errorcode without box is OK.
2017-08-28 12:04:23 +01:00
Michael Drake
771fe0d44c
HTML script handling: Convert to using content_broadcast_errorcode().
2017-08-28 11:01:30 +01:00
Michael Drake
830d7ec6b6
HTML content handler: Ensure script fetch hlcache callback handles errorcode.
2017-08-28 10:58:02 +01:00
Michael Drake
a30ae27e5c
HTML content handler: Ensure object fetch hlcache callback handles errorcode.
2017-08-28 10:53:07 +01:00
Michael Drake
adc6ceb0bb
CSS content handler: Ensure fetch hlcache callback handles errorcode.
2017-08-28 10:32:48 +01:00
Michael Drake
8180116d96
Plain text content handler: Convert to using content_broadcast_errorcode().
2017-08-28 10:27:20 +01:00
Michael Drake
d70beb28db
Content API: Make content_broadcast take pointer to content_msg_data.
2017-08-26 15:50:03 +01:00
Michael Drake
f738056710
HTML handler: Avoid unnecessary dom_string_caseless_isequal call.
2017-06-10 17:35:11 +01:00
Michael Drake
f855774e1a
Layout: Prevent negative widths on absolutle positioned boxes.
2017-06-02 18:24:23 +01:00
Vincent Sanders
08a86bfa0e
clean up doccomments and formatting in texplain content handler
...
There is an intention to replace the render interface and it will be
helpful to reduce the size of the exposed API as much as
possible. This is the first step towards that goal.
2017-06-01 22:43:45 +01:00
Michael Drake
6f7b5e3f22
Layout: Fix auto margins to be affected by {min|max}-width constraints.
2017-04-28 15:44:34 +01:00
Michael Drake
6c726473ef
Layout: Implement CSS3 box-sizing property.
...
Updates user agent CSS to set form element box-sizing properties,
and removes some legacy pre-CSS3 hacks for handling gadget dimensions.
2017-04-27 16:47:38 +01:00
Michael Drake
7bbf2a9ca0
HTML layout: Extend :after pseudo element handling to cover display:table.
...
This is used in a common clearfix variant.
http://nicolasgallagher.com/micro-clearfix-hack/
2017-04-26 16:39:11 +01:00
Michael Drake
ebcc27c330
Box tree dump: If box has element, include element name in dump.
2017-04-26 15:20:31 +01:00
Michael Drake
6bfc8ba547
HTML content handler: Don't let aborted contents get stuck in LOADING.
...
Previously, aborted HTML fetches left the content in LOADING state,
and the hlcache clean code does not clean contents in the LOADING
state. They, and their child contents ended up stuck in the
cache forever.
2017-03-23 14:31:38 +00:00
Michael Drake
0747e0ed53
HTML object fetch handler: Remove bogus parent content state assertion.
2017-03-23 14:31:22 +00:00
Michael Drake
be77f764e2
Improve content logging with content IDs (pointer values).
...
This makes it easier to track a content by its ID through a log.
2017-03-23 14:23:57 +00:00
Vincent Sanders
44c5aef1c8
make scrollbar redraw signal errors correctly
...
allow scrollbar redraw to return error codes and update documentation
commenst appropriately.
2017-03-01 23:30:29 +00:00
Vincent Sanders
d9a2c7b9c1
fix some doxygen errors
2017-02-24 14:02:31 +00:00
Vincent Sanders
1666944c7e
Merge branch 'vince/plotctx'
2017-02-12 20:01:05 +00:00
Chris Young
46c9267a11
Make disabled textboxes read-only. Partially fixes 2521.
2017-02-11 17:26:03 +00:00
Vincent Sanders
18abdadac8
split border drawing out of html redraw
2017-02-11 13:57:06 +00:00
Vincent Sanders
30df27c3ba
simplify html redraw border plotting error handling
2017-02-11 13:57:06 +00:00
Vincent Sanders
3722ff8d86
Update all core use of plotters to new API
2017-02-11 13:55:41 +00:00
Vincent Sanders
6075feb487
create netsurf inttypes header to have portable integer formatting macros
2017-01-21 14:20:55 +00:00
Vincent Sanders
70d700b26c
rationalise use of utils/utils.h header
2017-01-19 21:15:08 +00:00
Vincent Sanders
7dab7cb43d
move plot style header to netsurf include directory
...
move plotter style header and adjust all callers to use only what they
actually require.
2017-01-13 10:03:24 +00:00
Vincent Sanders
a2396edde4
complete transition to locale independant core operation
...
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.
2016-09-29 22:37:10 +01:00
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
Vincent Sanders
c830d14d0b
cleanup seevral doxygen warnings
2016-09-13 09:16:31 +01:00
Vincent Sanders
fa5e6fcdf9
make html content line parsing use no locale dependant ascii processing
2016-09-12 22:50:46 +01:00
Vincent Sanders
ca12878c2f
use ascii processing when determining form charset
2016-09-12 22:43:39 +01:00
Vincent Sanders
1776a0e61e
make box construction use correct ascii processing
2016-09-11 16:42:12 +01:00
Vincent Sanders
6efe60ee1d
simplify box_extract_link interface and improve documentation
2016-09-11 12:19:56 +01:00
Michael Drake
a122b94efd
URL escape: Simplify to avoid unnecessary allocation.
...
This removes the toskip parameter, which was only used by the RISC OS
front end. The toskip param was used to skip 8 characters which did
not need to be escaped from the start of the URL. The RISC OS front
end now orders the steps of its URL construction to avoid the need
for this.
2016-07-25 09:04:35 +01:00
Vincent Sanders
8066d1c8b4
move key press enums and operations to their own header
2016-07-01 14:27:04 +01:00
Vincent Sanders
66d0f14b32
move the public form API
2016-06-14 12:39:54 +01:00
Vincent Sanders
8861923455
Allow include directories to be added by sub makefiles
2016-06-06 14:47:27 +01:00
Vincent Sanders
76a68d7dd0
Update content to split public and internal API
2016-06-06 09:01:38 +01:00
Vincent Sanders
667605869f
move plotters header into public API
2016-05-30 21:05:57 +01:00
Vincent Sanders
7fc0a4c481
move desktop window header into public API
2016-05-30 17:32:57 +01:00
Vincent Sanders
8711fbe47d
move mouse and pointer state header into public API
2016-05-30 12:10:08 +01:00
Vincent Sanders
9ce71876ce
move layout header into public API
2016-05-30 11:31:35 +01:00
Vincent Sanders
fe7eb85614
move misc header into public API
2016-05-30 11:23:32 +01:00
Vincent Sanders
aa5090c85b
move utf8 header into public API
2016-05-30 11:20:15 +01:00
Vincent Sanders
903c4dbef9
move search header into public API
2016-05-30 10:57:22 +01:00
Vincent Sanders
2dab078f21
move bitmap API header to core include directory
2016-05-26 23:01:03 +01:00
Vincent Sanders
6722943b81
move the CSS content handler
2016-05-26 11:18:41 +01:00