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
Vincent Sanders
3224d7121a
move image content handlers to accomodate core build changes
2016-05-23 23:32:16 +01:00
Vincent Sanders
d6b6dafe50
fix plain text render regression introduced in layout table changes
2016-04-28 10:50:13 +01:00
Vincent Sanders
6a36d4ec2b
remove all core usage of warn_user API
2016-04-26 12:50:16 +01:00
Vincent Sanders
69cea38f41
update scrollbar_create error handling to return nserror
2016-04-26 12:14:56 +01:00
Vincent Sanders
974a4a21e1
split out the layout glyph sizing and splitting API
...
This refactors the core "font" sizing API to be handled through gui
function tables similar to every other core/frontend calling API.
2016-04-23 23:32:21 +01:00
Vincent Sanders
7d9c9dba36
Split utils header into string functions and everything else
...
split out the string handling API from the rest of the utils header
and fix up all the fallout.
2016-04-21 22:36:21 +01:00
Vincent Sanders
ea08caccb9
implement tsla code review points in render monotonic time change
2016-04-20 19:57:44 +01:00
Vincent Sanders
a6dd92c571
use monotonic clock call for html reflow timing
2016-04-20 19:18:15 +01:00
Vincent Sanders
dee7426656
stop content header dragging in so many other headers
2016-04-19 23:20:29 +01:00
Vincent Sanders
33c7df0c40
complete the rename of the gui browser table
...
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.
2016-04-16 23:50:21 +01:00
Vincent Sanders
d15ab96a51
Fix size_t printf formatting
...
The printf formatting for size_t is set in c99 as %zu but in windows
it is %Iu this is solved by adding and inttypes style PRI macro for size_t
This also uses this macro everywhere size_t is formatted.
2016-03-17 22:00:54 +00:00
Vincent Sanders
7d4d500c1d
Revert "Fix memory leak in error handling"
...
This reverts commit c53be10892
.
Issue tracked in bug 2443
2016-03-16 08:36:36 +00:00