Commit Graph

11659 Commits

Author SHA1 Message Date
Vincent Sanders
6fd2c320f2 Turn off excessive debugging in javascript 2015-10-07 21:06:17 +01:00
Vincent Sanders
b5f1c5eee2 complete binding for HTML BR element 2015-10-07 14:45:57 +01:00
Vincent Sanders
315339cbc8 Add a brief explanation of whats in the unimplemented documentation 2015-10-07 10:28:01 +01:00
Vincent Sanders
d0371d5d3b Add documentation showing unimplemented javascript bindings 2015-10-07 09:18:14 +01:00
Vincent Sanders
b7eb35ef24 putforwards test on location 2015-10-05 23:09:07 +01:00
Vincent Sanders
a46d9057d8 Update html IDL to current spec 2015-10-05 21:54:44 +01:00
Vincent Sanders
6a4a7d7c25 report error getting user data in document.write 2015-10-05 21:53:43 +01:00
Vincent Sanders
fbc3f36fb5 initial js navigator binding 2015-10-05 15:46:22 +01:00
Vincent Sanders
9ebdc7dd7a ensure completion of async js scripts completes the fetch
When the fetch of asynchronous javascript scripts completed the
completion of html rendering was not processed leaving the state
machine waiting forever.
2015-10-02 09:29:51 +01:00
Dave Higton
33264e012b Makes the Javascript document.writeln() function work as well as write() 2015-10-01 12:38:39 +01:00
Vincent Sanders
4bdd4cf7b6 Update bindings to cope with improved nsgenbind syntax 2015-09-28 08:57:45 +01:00
Michael Drake
51c2dd70e2 Add assert before we wander off into the weeds.
Visiting slashdot we get a document write with a node that has no
html content user data.
2015-09-26 12:53:43 +01:00
Vincent Sanders
46945f6362 Improve location implementation to be more complete 2015-09-20 10:35:32 +01:00
Vincent Sanders
63dba3a061 expose the location object through document as well as window 2015-09-10 08:51:56 +01:00
Daniel Silverstone
73c6476112 Fix instanceof to be correct and improve documentation of stack contents 2015-09-09 14:00:37 +01:00
Chris Young
410f6fdb9e Allow the popupmenu-based select menu to cascade into multiple sub-menus containing further items, when there are too many to fit on the screen in one column. 2015-09-07 17:41:24 +01:00
Vincent Sanders
1a43dd21b3 Add initial readonly location implementation 2015-09-07 13:53:59 +01:00
Vincent Sanders
1f07c45740 fix gadget resource leak (coverity #1109875) 2015-09-07 13:53:59 +01:00
Chris Young
d137bda454 Move status bar gadget to the correct place on OS3
Still practically useless as it constantly overprints.
2015-09-06 09:33:00 +01:00
Chris Young
e5c34567dc Fix broken headers 2015-09-06 09:23:08 +01:00
Chris Young
d1ccd3e53d Create menu on OS3 and 3 the same way (old GadTools method)
This makes it easier to switch to menuclass.
It also fixes a crash-on-exit bug on OS3.
2015-09-06 09:12:26 +01:00
Chris Young
de75959362 Create menus on OS3 and 4 the same way (manual GadTools method).
This makes it easier to switch to menuclass.
It also fixes a crash-on-exit bug on OS3.
2015-09-06 09:06:20 +01:00
Chris Young
1e83301251 Remove errorneous addition. 2015-09-05 16:54:12 +01:00
Chris Young
1a8cf5b7a7 Merge branch 'chris/menuclass'
This replaces the old popupmenu.class-based context menus with Intuition-based ones.  This provides the following advantages:
- No more RMBTrap, so menu shortcuts work without having to be manually handled
- Standard menus now display when not over a contextual zone, so the not-really-contextual menu items have been removed
- No buggy system crash problems, so they are always enabled now
- Menus can be attached directly to gadgets, so the history menu is now attached directly to the back/forward buttons (however they now need to be periodically refreshed as they can't be created on demand)

Additionally, the menu items now have images.
popupmenu.class is now only used (optionally) for form select menus.  This code has been bug-fixed and is now toggleable from the prefs GUI.  However, due to the inability to display more items than fit on the screen, it still isn't recommended to use it.
2015-09-05 16:38:48 +01:00
Chris Young
5b880e586c Fix memory leak 2015-09-05 16:33:23 +01:00
Chris Young
eb366fa0d8 Correct checkbox logic 2015-09-05 15:53:21 +01:00
Chris Young
6a00255855 Enable control of core/popupmenu select menus in the prefs GUI.
This at least gives the option for people who prefer the popupmenu-based selection menus to easily switch back to the core ones when the options don't all fit on the screen (as popupmenu can't scroll).
2015-09-05 15:37:34 +01:00
Chris Young
63227a214b Rename context_menu.c and strip out all the context menu code, so this file and popupmenu.class is only used (optionally) for HTML form selection. 2015-09-05 15:09:00 +01:00
Chris Young
00aa1e2d35 Add a small test menu to the clicktab gadget 2015-09-05 01:41:56 +01:00
Chris Young
46f3670fae Add context menu item for copying text selection 2015-09-05 00:39:46 +01:00
Chris Young
7ea2488d1c Add a context item for frames 2015-09-05 00:22:46 +01:00
Chris Young
12bef8a0d9 Avoid displaying irrelevant items in the context menu for objects
Add an item for the "plugin hack" stuff
2015-09-05 00:09:47 +01:00
Chris Young
da5638debc Context menu for objects 2015-09-04 23:59:22 +01:00
Chris Young
a15e5a7869 Complete context menu items for links 2015-09-04 23:38:04 +01:00
Chris Young
41f219192c Create back/forward context menu using menuclass
Reconstructs itself periodically as it cannot be created on demand
2015-09-04 00:26:52 +01:00
Chris Young
cdaae7b30e Add a couple of context menu items for links for testing. 2015-09-03 19:57:04 +01:00
Chris Young
944248ce32 Rough outline for Intuition-based context menu 2015-09-03 00:24:04 +01:00
Chris Young
52d182e71e Disable the popupmenu-based context menu and the emulated menu keyboard shortcuts in preparation for test implementing an Intuition-based context menu. 2015-09-02 17:34:24 +01:00
Chris Young
2e4bfc5dc3 Fix version check 2015-09-02 17:26:33 +01:00
Chris Young
61342f4dee Use the correct format define for WPA() 2015-09-01 20:56:18 +01:00
Chris Young
fdb9a42eff Don't use P96 on gfx.lib v54+ systems 2015-09-01 19:31:58 +01:00
Chris Young
e0198789ae Use a skip list instead of a splay tree for now to fix memory leakage 2015-09-01 19:14:11 +01:00
Chris Young
06221c2340 Fix usage of ExAll with new SDK
Some of the defines it needs have moved to dos/obsolete.h
2015-09-01 18:06:45 +01:00
Chris Young
a73d53845c Fix MinTerm defines for SDK 53.29 2015-09-01 18:02:32 +01:00
Chris Young
33eb8d3324 Attempt to use splay trees for font caching.
This is theoretically faster, but leaks like a sieve.
2015-09-01 00:23:20 +01:00
Michael Drake
257666499d Reorder percentage calculation.
Fixed point representation couldn't store 0.65 exactly, so avoid doing
the divide by 100 first.

I will look at moving this into libcss's fixed point header and doing
it in a way that avoids arithmetic overflow, but for now this fixes
el reg layout.
2015-08-24 22:47:58 +01:00
Chris Young
914ba332e2 Use the correct decoded surrogate values for calculating kerning widths 2015-08-24 20:56:01 +01:00
Chris Young
4bbf2ac58a Avoid accessing NULL pointer 2015-08-24 18:00:24 +01:00
Chris Young
cba6bdb481 If a designed (bold, italic, etc) version of a specific font is set but not actually installed, treat this as a non-critical error, log it, and create a computed version. 2015-08-19 19:15:06 +01:00
Chris Young
fea40a0a78 Restrict all menu icon code to OS4+gadtools53.7
This avoids requests for TBimages: on OS3
2015-08-17 18:15:29 +01:00