Michael Drake
ab03b204ba
Local history: Treat thumbnail dimensions as CSS pixels.
2019-08-02 21:10:15 +01:00
Daniel Silverstone
818f4018d2
local_history: Handle keys for navigating local history
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-02 20:59:47 +01:00
Daniel Silverstone
1ee32fe962
local_history: Add concept of a cursor to the local history
...
So that we can eventually navigate around local history by
keyboard, add the concept of a history cursor to the local
history core window.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-02 20:59:08 +01:00
Vincent Sanders
552aab42e1
remove scaled parameter from get_dimensions
2019-08-02 12:26:20 +01:00
Vincent Sanders
4ae27a6592
remove scaling from internal browser get_dimensions calls
2019-08-02 12:26:19 +01:00
Michael Drake
de12be4e9c
Browser window: Make invalidate gui callback use unsacled coordinates.
2019-08-01 22:34:13 +01:00
Vincent Sanders
7f612548e7
reformat and tidy up browser window code ready for corewindow changes
2019-08-01 19:51:19 +01:00
Vincent Sanders
5742762070
split browser and browser_window operations
2019-08-01 19:51:19 +01:00
Vincent Sanders
83c9d2017f
Fix clamping in commit fa64763b0d
2019-08-01 14:38:20 +01:00
Daniel Silverstone
fa64763b0d
browser_history.c: Clamp contents to be 1x1 at min.
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-01 09:29:22 +01:00
Daniel Silverstone
22ee6621fe
treeview: Correct mis-freeing in treeview_create error path
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-01 09:04:17 +01:00
Vincent Sanders
f4878b4c17
Update version for next development cycle
2019-07-17 11:39:46 +01:00
Vincent Sanders
cfdaf181a2
cleanup browser window message handling
...
separate out ready and done message processing to make the code
more readable.
remove checking of content status as content_close() handles that
itself.
2019-07-10 17:08:29 +01:00
Daniel Silverstone
03624bcf7a
browser.c: Don't require > 0 chars in logging
...
Sometimes JavaScript chooses to log an empty string. We should
honour that by requiring msg be a valid empty string.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-06-09 15:20:17 +01:00
Daniel Silverstone
c47cc08883
Ensure we set the defaults for the log options to those compiled in
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-28 20:49:12 +01:00
Michael Drake
b38f7cc718
Browser window: Handle the content msg for getdims.
2019-05-06 15:38:33 +01:00
Michael Drake
a4da4612c2
Logging: Bump lwc leak exit report to WARNING level.
2019-05-06 13:06:22 +01:00
Daniel Silverstone
6fdc692aa5
Support DEBUG log level in console_log
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-06 10:16:48 +01:00
Daniel Silverstone
0312c45d6f
Use console_log from browser_window_console_log
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-06 09:49:46 +01:00
Daniel Silverstone
d240174741
Add console_log to gui tables
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-06 09:49:11 +01:00
Vincent Sanders
35bc2ccbb8
change content get_source_data interfaces to return uint8_t and size_t
...
previously these interfaces returned char * and unsigned int which was
undesirable.
2019-05-05 22:50:25 +01:00
Daniel Silverstone
8474c5d4c0
Logging: migrate and provide content interface
...
Migrate the console enums into netsurf/console.h and add
support so that contents can raise a message to log to
the console.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-05 22:17:10 +01:00
Daniel Silverstone
6952a23946
Provide new browser_window_console_log() API
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-05 22:17:10 +01:00
Daniel Silverstone
1146f8bf49
Add browser_window_exec
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-05 16:00:03 +01:00
Michael Drake
9501c9e68d
Treeview: Consider search bar for redraw area calculation.
2019-01-19 15:12:03 +00:00
Michael Drake
83798a83b7
Treeview: Use helper to get tree height.
2019-01-19 15:11:35 +00:00
Michael Drake
c6f92f2f2a
Treeview: Consolidate search bar height calculation.
2019-01-19 14:54:57 +00:00
Michael Drake
7e08cf4352
Treeview: Fix designated struct initialisation.
2018-10-04 20:24:10 +01:00
Vincent Sanders
ba4b06dc04
Update version for next development cycle
2018-08-29 10:52:51 +01:00
Michael Drake
9c29935f3c
HTTP Auth: Squash error path leaks.
2018-08-15 11:11:54 +01:00
Michael Drake
81a59f2f7c
HTTP Auth: Do get/set auth in the core.
2018-08-14 18:52:11 +01:00
Michael Drake
19eb051727
HTTP authentication: Add some logging when opening 401 windows.
2018-08-09 17:18:39 +01:00
Michael Drake
42459f72c1
Treeview: Allow dragging selection to a selected target.
...
This can be used to consolidate a scattered selection at
drop target when the the drop target happens to be part
of the selection.
2018-07-26 15:13:13 +01:00
Michael Drake
341cfc115b
Treeview: Various changes to redraw rectangle for search bar.
2018-07-26 15:00:36 +01:00
Michael Drake
eeb7be1cbf
Browser: Add function to get bw URL with any fragment.
...
This returns a ref to the URL.
2018-07-23 11:33:43 +01:00
Michael Drake
09b015bf11
Browser: Rename function to access bw URL.
2018-07-23 10:47:26 +01:00
Michael Drake
8332bf6b2a
Plotters: Remove width param from path plotter.
...
We now use the stroke_width in the plot_style.
2018-05-23 13:48:17 +01:00
Michael Drake
66493421e6
Plotters: Change stroke width in the plot_style_t to fixed point.
2018-05-23 13:04:19 +01:00
Michael Drake
a58d97a41a
Plotters: Add plot_style_fixed type, and use for font size.
2018-05-23 11:48:35 +01:00
Vincent Sanders
216fb88f58
clean up html content handler header use
...
Improve header use in preperation for making browser window a corewindow
2018-05-11 13:18:54 +01:00
Vincent Sanders
2a03ea3049
move html and text content handlers where they belong
2018-05-10 13:37:02 +01:00
Michael Drake
a72771f8eb
Browser: Don't add history entry until after reformat.
...
Adding a history entry causes content_redraw() for the thumbnail.
But we can't content_redraw() until after content_reformat().
Otherwise we get HTML redraw before HTML layout has happened.
2018-04-14 17:00:18 +01:00
John-Mark Bell
7a75ec1576
History: don't update if there's no content.
...
Fixes #2566 .
2018-01-20 18:47:26 +00:00
Michael Drake
6be6fa1b21
CSS utils: Handle new units in length conversion routines.
...
This causes a ripple effect of all the callsites needing
information they didn't have.
2018-01-05 13:49:51 +00:00
Michael Drake
2557335f1b
Squash GCC7 warning for ‘~’ on a boolean expression.
2017-10-23 09:50:27 +01:00
Vincent Sanders
7fa4b36245
Update version for next development cycle
2017-10-15 14:44:53 +01:00
Michael Drake
8f0f44e3d1
Treeview: Ignore mouse leaving the treeview window.
2017-09-27 17:47:34 +01:00
Michael Drake
3f4bc9d284
Treeview: Deactivate search on cancel.
2017-09-25 12:02:14 +01:00
Michael Drake
9ca33854bf
Browser history: Don't segfault when visiting pages with frames.
...
Core can't make queries of front end about browser windows with no
gui window.
2017-09-23 16:10:45 +01:00
Michael Drake
fb4be0feb2
Browser history: Create new history entries early in the READY state.
...
This prevents us updating the previous history entry with this page's
scroll offsets.
2017-09-23 16:03:31 +01:00