Commit Graph

12024 Commits

Author SHA1 Message Date
Vincent Sanders
8a075b7142 fix strcasecmp implicit declaration warnings on freebsd 2016-02-12 14:53:52 +00:00
Vincent Sanders
157f05bc61 enable monkey to be built everywhere it is completely generic now 2016-02-12 14:16:31 +00:00
Vincent Sanders
2c9cc34334 fix debug print format type.
openbsd timeval structure defines the seconds part as time_t and not
int so we need to use a time_t format suitable everywhere.
2016-02-12 13:47:49 +00:00
Vincent Sanders
5d3c38a704 remove reliance on GLib from monkey frontend
This changes the monkey implemntation to use a simple scheduler list
and select instead of glib events.
2016-02-12 13:37:50 +00:00
Chris Young
a1e79a8ff6 Stop GIF animations when they are no longer in use
Previously animations would continue to run until destroyed
Fixes 2227
2016-02-11 19:26:56 +00:00
Chris Young
a0e41a46a3 Stop GIF animations when they are no longer in use, instead of waiting until they are destroyed. 2016-02-11 19:23:32 +00:00
Vincent Sanders
90f65814c6 fix coverity build generated tar handling 2016-02-11 12:01:41 +00:00
Michael Drake
04e61b710f Fix object accounting for aborted HTML contents. 2016-02-11 11:45:38 +00:00
Michael Drake
d4a01d525a HTML: Remove some status bar updating code. 2016-02-10 16:09:16 +00:00
Vincent Sanders
eadd589f63 cleanup cocoa application run method
This fixes several warnings and cleans up automatic pool cleanup
handling in the run method. Additionally this is a whitespace cleanup.
2016-02-10 15:35:28 +00:00
Vincent Sanders
a63e902871 Prevent cocoa infinite event loop at startup
The PSMTabController framework was calling mouse exited events on its
rollover button implementation which caused an inifinite recursion in
event forwarding.
2016-02-10 15:27:08 +00:00
Michael Drake
3bee7b7e12 Layout: Don't generate :before and :after boxes for replaced elements.
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
2016-02-09 16:42:28 +00:00
Michael Drake
3af77eabd8 Can free pango font desc as soon as it's set. 2016-02-09 15:15:53 +00:00
Michael Drake
51084243a2 Add switch case fallthrough comment. 2016-02-09 13:54:21 +00:00
Michael Drake
f5be1eb413 Add switch case fallthrough comments. 2016-02-09 13:54:21 +00:00
Vincent Sanders
d0334c35e9 fix coverity submission for netsurf 2016-02-09 11:32:21 +00:00
Vincent Sanders
9610dbd210 remove possible null dereference on allocation faliure
fix null dereference is calloc fails. coverity 1316339
2016-02-09 10:31:46 +00:00
Vincent Sanders
1a6408ab63 remove another failing cocoa translation string 2016-02-09 09:28:02 +00:00
Vincent Sanders
ffa7c5bd7e remove another cocoa string causing ibtool to fail 2016-02-09 09:18:16 +00:00
Vincent Sanders
564a80243d remove strings causing ibtool to fail on cocoa build 2016-02-09 09:12:07 +00:00
Vincent Sanders
2d2268f5dc clean up cocoa warnings on os x yosemite sdk 2016-02-09 00:34:47 +00:00
Vincent Sanders
36d1ae479b mac os x 32bit runtime requires properties to be defined to syntehsize 2016-02-08 21:34:44 +00:00
Vincent Sanders
a29969888a Update compilation to cope with modern SDK locations 2016-02-08 21:20:13 +00:00
Vincent Sanders
405965d871 Update Mac OS X cocoa frontend to build using SDK 10.10 2016-02-08 21:20:13 +00:00
Michael Drake
df2d62a872 Use readonly get_line, since it is supposed to be faster. 2016-02-08 15:59:24 +00:00
Michael Drake
9cb522ce38 Don't haemorrhage Pango layouts out of nsfont_paint.
Before:
  LEAK SUMMARY:
     definitely lost: 143,462 bytes in 811 blocks
     indirectly lost: 835,174 bytes in 16,656 blocks
       possibly lost: 104,465 bytes in 1,631 blocks
     still reachable: 3,634,180 bytes in 30,844 blocks
          suppressed: 0 bytes in 0 blocks

After:
  LEAK SUMMARY:
     definitely lost: 57,990 bytes in 258 blocks
     indirectly lost: 218,013 bytes in 5,995 blocks
       possibly lost: 110,118 bytes in 1,837 blocks
     still reachable: 3,637,842 bytes in 30,881 blocks
          suppressed: 0 bytes in 0 blocks
2016-02-08 14:59:35 +00:00
Michael Drake
255361a885 Log the cache limit along side size, after clean. 2016-02-08 11:48:33 +00:00
Michael Drake
fc2d766bff Style: Wrap some long lines. 2016-02-08 11:38:41 +00:00
Michael Drake
63fb2cbdc1 Add URL to llcache object destruction logging. 2016-02-08 11:27:04 +00:00
Vincent Sanders
67bdf81ca9 fix cocoa SDK awk invocation 2016-02-07 23:35:37 +00:00
Vincent Sanders
75dd6fe6ac extract cocoa SDK path rather than use pre-defined path 2016-02-07 23:29:01 +00:00
Vincent Sanders
bbd3302de5 ensure limits is included for PATH_MAX 2016-02-07 22:19:47 +00:00
Vincent Sanders
1de182a349 ensure mac os x path is correct 2016-02-07 22:10:35 +00:00
Dave Higton
8c05425a20 Fix RISC OS pointer shape issue
This is a patch for Mantis issue 2170.

The bug is that, if you hover over a link in a window and then close
the window with Control-F2, the pointer remains as the link pointer
shape.  The fix restores the pointer to the default shape before
destroying the window.
2016-02-07 22:06:35 +00:00
Vincent Sanders
bfbd838395 update jenkins build script for yosemite 2016-02-07 21:59:28 +00:00
Vincent Sanders
a1bc4c6a22 remove need for glib in monkey frontend main 2016-02-07 21:08:35 +00:00
Michael Drake
86ad729085 Fix body text hint. 2016-02-07 20:10:31 +00:00
Michael Drake
356615573a Test: Remove duplicate noscript element. 2016-02-06 12:51:44 +00:00
Michael Drake
0a3519fdac Remove torrent of logging during browser window resize. 2016-02-06 12:41:51 +00:00
Michael Drake
eb67607e3b Merge branch 'tlsa/upfront-hints' 2016-02-05 10:51:19 +00:00
Michael Drake
278451463f Rewrite hints handling to be more efficient.
Now we only look for hints that are actually possible for the
given element.  This new way of doing things is made possible
by the new LibCSS API for hints.

This also makes use of the LibDOM HTMLElement tag type to avoid
lots of massive if-else-if ladders of dom_string_caseless_isequal
calls.
2016-02-05 10:49:58 +00:00
Michael Drake
e42afd9b32 Change hints handling to use new libcss API.
Collect hints and provide them up front.

Note this implementation is minimal effort, and quite inefficient.
We can be faster about it by walking the element's attributes, and
caching things set on ancestor elements which apply to the current
element.  (Mostly table, and body stuff.)
2016-02-05 10:49:58 +00:00
Michael Drake
ae485432c5 Remove duplicate branch. 2016-02-05 10:49:58 +00:00
Michael Drake
e6c8188229 Tidy cellpadding hint handling. 2016-02-05 10:49:58 +00:00
Michael Drake
8e580ccd19 Split out presentational hints handling. 2016-02-05 10:49:58 +00:00
Vincent Sanders
f06ec6390a add noscript warning to all tests so it is obvious when js is disabled 2016-02-04 15:11:19 +00:00
Michael Drake
3cc80b6a7d Add test for document.write() adding a STYLE element. 2016-02-02 12:19:00 +00:00
Adrien Destugues
18c8cb0f85 UI fixes for search bar and cookie manager
- Make the "Utilities" menu enabled again, since the cookie manager is
  there,
- Bigger default size for the cookie manager window, and activate it
  when shown,
- Fix the layout of the top bar so the search field is visible, and
  make it send the search request to the right place.
2016-02-01 23:21:24 +00:00
John-Mark Bell
25b88e42e6 Test for [TreatNullAs=EmptyString] 2016-02-01 20:50:42 +00:00
Michael Drake
9fb755b754 Handle known HTML elements without specialisations. 2016-02-01 18:48:42 +00:00