Commit Graph

46 Commits

Author SHA1 Message Date
Michael Drake 8c60d38769 Can't clone a content that gets reflowed for a viewport size. 2012-11-11 20:14:18 +00:00
Michael Drake c040fbc4cc Allow reformats to different size. 2012-11-11 20:02:45 +00:00
Vincent Sanders c1671f37b1 reduce talloc usage to box tree layout only 2012-10-03 19:26:17 +01:00
John Mark Bell f2993e6ed0 content_get_url -> hlcache_handle_get_url, content__get_url -> content_get_url
svn path=/trunk/netsurf/; revision=13236
2011-12-04 14:55:23 +00:00
Michael Drake 36eff6da2b Port more internals to nsurl. Front ends may need updating.
svn path=/trunk/netsurf/; revision=12926
2011-10-03 15:56:47 +00:00
John Mark Bell 9ee4f6146e Remove mime_type parameter from content handler content_type callback API
svn path=/trunk/netsurf/; revision=12704
2011-09-03 09:27:42 +00:00
Vincent Sanders cd554e6f1e make image content handlers build conditional from teh makefile
svn path=/trunk/netsurf/; revision=12673
2011-08-28 14:29:15 +00:00
Vincent Sanders 81c52ad494 Initial image content handler refactor
svn path=/trunk/netsurf/; revision=12671
2011-08-27 08:43:51 +00:00
Michael Drake eddae6af06 Remove plotter table global. Pass a redraw context around redraw functions. Knockout could be handled better. Note: untested on most front ends.
svn path=/trunk/netsurf/; revision=12543
2011-06-30 15:48:07 +00:00
Michael Drake 3128ecf2a5 Unify content_redraw params in content_redraw_data struct. Core and RISC OS content handlers updated.
svn path=/trunk/netsurf/; revision=12529
2011-06-28 20:17:39 +00:00
Vincent Sanders 83f9e707eb refactor content handler initilisation to use named initialisors
svn path=/trunk/netsurf/; revision=12341
2011-05-09 15:32:34 +00:00
Michael Drake 0929aa897b Fix tiled redraw of SVGs.
svn path=/trunk/netsurf/; revision=12340
2011-05-09 13:02:22 +00:00
Michael Drake cbc2a9470f Wrap macro.
svn path=/trunk/netsurf/; revision=12339
2011-05-09 12:17:55 +00:00
Michael Drake 94bcee728b Fix declaration too.
svn path=/trunk/netsurf/; revision=12326
2011-05-09 08:10:27 +00:00
Michael Drake 8a74107c36 Fix image/svg.c build.
svn path=/trunk/netsurf/; revision=12325
2011-05-09 08:03:36 +00:00
John Mark Bell e71691bae8 Merge branches/jmb/content-factory to trunk
svn path=/trunk/netsurf/; revision=12283
2011-05-06 20:40:09 +00:00
Michael Drake 06ff431df7 Handle scaling of text plots in core.
svn path=/trunk/netsurf/; revision=11935
2011-03-08 18:47:15 +00:00
John Mark Bell 86a2e0076d Fix bug #3194007: stop emitting duplicate READY/DONE events.
* Make content handlers responsible for setting READY/DONE state & emitting events.
	* Stop content_convert doing this when there is a registered convert function for the content type.

svn path=/trunk/netsurf/; revision=11850
2011-02-27 20:11:39 +00:00
John Mark Bell f42ed976e5 Constify
svn path=/trunk/netsurf/; revision=11680
2011-02-14 19:17:08 +00:00
Michael Drake fe7921a387 Pass clip rect as struct through content_redraw api. Update the front ends to use this. Note only RO build tested.
svn path=/trunk/netsurf/; revision=11670
2011-02-13 22:25:11 +00:00
John Mark Bell 79ce683b4e Most of a stop implementation.
Remaining work:
  1) Clone content_html_data
  2) Cloning content_css_data requires the charset of the old content
  3) Calling hlcache_handle_abort() before a content has been created must clean up the retrieval context.

svn path=/trunk/netsurf/; revision=10236
2010-04-04 12:41:19 +00:00
Chris Young 07537e5240 Fix compilation when building WITH_NS_SVG
svn path=/trunk/netsurf/; revision=10213
2010-03-30 18:12:21 +00:00
John Mark Bell b794d694d3 It probably helps to invert the done_parse flag
svn path=/trunk/netsurf/; revision=10209
2010-03-30 07:09:49 +00:00
John Mark Bell 9aca901eb1 The convert stage of a content's state progression no longer reflows the content to the provided dimensions.
It is now defined as converting the content into a state in which it is ready for use.
The user of the content is now responsible for performing an initial reformat (sic) of the content before it can be redrawn.

Purge width/height parameters from hlcache_handle_retrieve/content_convert/*_convert APIs.
Fix up content handlers affected by the above change in semantics.
Ensure that browser_window_callback performs an initial reformat of its content.

svn path=/trunk/netsurf/; revision=10207
2010-03-29 22:33:21 +00:00
Chris Young 5b5e15c845 Fix for new-cache
svn path=/trunk/netsurf/; revision=10195
2010-03-28 22:11:30 +00:00
Daniel Silverstone 270ef59a98 Merge jmb/new-cache; r=dsilvers,rs=vince
svn path=/trunk/netsurf/; revision=10180
2010-03-28 12:56:39 +00:00
John Mark Bell ddeadd1c02 Merge LibCSS port to trunk.
svn path=/trunk/netsurf/; revision=8752
2009-07-23 23:05:34 +00:00
John Mark Bell 2565a37a52 Refactor text plotter and other font functions to remove dependency on CSS.
svn path=/trunk/netsurf/; revision=8641
2009-07-21 10:59:53 +00:00
Michael Drake 8365d46eb7 Rename TRANSPARENT to NS_TRANSPARENT to avoid clash on Windows. By MarkieB.
svn path=/trunk/netsurf/; revision=8513
2009-07-14 10:57:07 +00:00
John Mark Bell 2ba7092933 Correctly propagate plot success
svn path=/trunk/netsurf/; revision=7611
2009-05-28 16:21:32 +00:00
John Mark Bell 8f25d44891 Squash warning.
svn path=/trunk/netsurf/; revision=6935
2009-03-27 02:47:16 +00:00
François Revel 53fe38504f C89
svn path=/trunk/netsurf/; revision=5837
2008-11-29 22:53:58 +00:00
John Tytgat 2d1481fafc 'unsigned long' -> 'colour' where it made sense.
svn path=/trunk/netsurf/; revision=5459
2008-09-28 22:37:13 +00:00
John Mark Bell 430ac1db21 Convert svgtiny colours to BGR ordering when passing them to plotter APIs.
svn path=/trunk/netsurf/; revision=4784
2008-07-28 23:26:54 +00:00
John Tytgat 203b3289b8 - Include utils/config.h before each WITH_* test entiry enabling/disabling the object file.
- Add same test in corresponding header file (if there is one)
- riscos/uri.c: include riscos/uri.h and have function definitions matching the declarations.
- Disable PDF debug logging.

svn path=/trunk/netsurf/; revision=4769
2008-07-26 23:42:24 +00:00
Michael Drake 9d3b7b43fd Update status bar when standalone images are done.
svn path=/trunk/netsurf/; revision=3917
2008-03-10 12:41:41 +00:00
James Bursa 5c1f3bd8c8 Move SVG code into a new library, libsvgtiny.
svn path=/trunk/netsurf/; revision=3837
2008-02-03 19:11:36 +00:00
James Bursa 13d479785c Fix coordinates when redrawing an SVG within a page.
svn path=/trunk/netsurf/; revision=3661
2007-12-11 02:40:33 +00:00
James Bursa f09ea1d8f1 Implement polyline, polygon, more path segment types, and more transforms.
svn path=/trunk/netsurf/; revision=3659
2007-12-02 05:53:31 +00:00
James Bursa b2c0baffcd Implement and fix more of viewBox, path, and transform.
svn path=/trunk/netsurf/; revision=3655
2007-11-30 03:08:02 +00:00
James Bursa 069525fe89 Add support for transform, color none, and some colours in style attribute.
svn path=/trunk/netsurf/; revision=3654
2007-11-29 05:56:57 +00:00
Vincent Sanders 2f864eeecc Update all source code file headers to reflect GPL version 2 only and contain appropriate licence text
svn path=/trunk/netsurf/; revision=3486
2007-08-08 16:16:03 +00:00
Rob Kendrick 59f358eb0f Wrap internal SVG renderer with appropriate #ifdef WITH_NS_SVG
svn path=/trunk/netsurf/; revision=3432
2007-07-18 14:49:26 +00:00
James Bursa fe4938d592 Start on implementing SVG <path>.
svn path=/trunk/netsurf/; revision=3427
2007-07-17 02:45:33 +00:00
James Bursa 9cd109060a Add SVG support for a few basic shapes.
svn path=/trunk/netsurf/; revision=3420
2007-07-15 23:22:54 +00:00
James Bursa 59ecedf444 Primitive SVG render (rect, text).
svn path=/trunk/netsurf/; revision=3405
2007-07-13 03:53:14 +00:00