50 Commits

Author SHA1 Message Date
MoyuScript
e2991adc76 Render input elements correctly 2014-03-02 19:51:46 +02:00
MoyuScript
308b8fd8f4 Fix IE misalignment of content after scroll 2014-03-02 18:03:30 +02:00
MoyuScript
a8d0678328 Fix text rendering for IE and Opera 2014-03-02 16:00:59 +02:00
MoyuScript
1b9a73b3f2 Partial implementation for transforms 2014-02-23 17:35:46 +02:00
MoyuScript
a4ba5d1b11 Render correct element 2014-02-23 17:02:49 +02:00
MoyuScript
b062c9ca7d Hide iframe container from view during render 2014-02-23 16:26:23 +02:00
MoyuScript
6ecd8bcead Fix image loading for cross-origin resources 2014-02-17 00:04:09 +02:00
MoyuScript
ddc81fe697 Fix render ordering of nodes that form fake stacking contexts 2014-02-15 00:33:09 +02:00
MoyuScript
f75dc6ecca Force doctype for iframe 2014-02-10 19:53:13 +02:00
MoyuScript
b9e1fcae52 Fix pseudoelement rendering for Firefox 2014-02-08 17:42:40 +02:00
MoyuScript
a004d59897 Add support for pseudoelements 2014-02-08 16:52:41 +02:00
MoyuScript
f1482b8c2f Correctly assign image loading method for <img> elements 2014-02-08 14:07:20 +02:00
MoyuScript
69390d6b8f Switch to using Promises 2014-02-03 19:42:42 +02:00
MoyuScript
7c0dcde86b Move NodeParser to seperate file 2014-02-01 18:52:53 +02:00
MoyuScript
0e2fd37f28 ios window size and scroll fixes 2014-02-01 18:32:05 +02:00
MoyuScript
789b780c6e Draw <img> elements 2014-01-26 18:10:04 +02:00
MoyuScript
e48fed63a5 Implement background rendering 2014-01-26 16:06:16 +02:00
MoyuScript
9698eaec5f Begin implementing background-image rendering 2014-01-21 21:41:00 +02:00
MoyuScript
355bde3655 0.5.0 rewrite 2014-01-19 18:04:27 +02:00
MoyuScript
888f2a9156 Refactor background parsing 2013-12-23 16:07:49 +02:00
MoyuScript
49a554b334 Implement background-size cover/contain 2013-11-12 19:35:28 +02:00
MoyuScript
1cc71a33bc Add dom depth information to render queue 2013-10-27 22:08:12 +02:00
MoyuScript
b35d1e585b Speed & accuracy improvements to pseudo element rendering.
Previously, pseudo elements would be processed as they were found in the DOM tree, which was
an expensive operation as each element's computed :before and :after style was checked for
'content' styles.

This commit traverses the user's stylesheets for :before and :after selectors, gathers the classes
affected, selects all elements that likely have a pseudo element present, then checks computed style.
If there is actually an element present, it is created but *not* appended to the DOM until after
all elements have been processed.

After all elements have been found and created, they are added to the DOM in a single batch, and the original
pseudo elements are hidden in a single batch. This prevents the layout invalidation / relayout loop that was
occuring previously, and in my tests speeds parsing by as much as 50% or more, depending on how many
pseudo elements your page uses.

Additionally, this commit contains a bugfix to the handling of ":before" pseudo elements; the browser effectively
inserts them as the first child of the element, not before the element. This fixes a few rendering inconsistencies
and complicated pages look almost perfect in my tests.
2013-09-18 13:38:21 +08:00
MoyuScript
11417a16f0 Add async parsing option.
In my testing, the major time sink is parsing. This commit adds a setTimeout() around parsing
of each item so control can return to the browser. This increases the total time it takes to finish
a screenshot but will not freeze the browser when it does. This is a good option when e.g. doing
error reporting, where you might not want to freeze the browser while sending debugging information
back to your server.
2013-09-18 13:38:21 +08:00
MoyuScript
ea679c6046 Add bower.json 2013-09-07 21:24:41 +03:00
MoyuScript
1eb387f197 drop obsolete files from the build folder 2011-11-16 00:36:44 +01:00
MoyuScript
f260da2c61 merged from dev 2011-09-12 21:35:37 +03:00
MoyuScript
5ade2c104c Added support for some list-style-type's with list-style-position: inside 2011-08-11 22:43:42 +03:00
MoyuScript
7880e62056 fixed IE 9 text issues 2011-08-11 16:19:42 +03:00
MoyuScript
1b395d0548 fixed fatal error with multiple background images 2011-08-11 15:32:20 +03:00
MoyuScript
40418bd957 rewrote z-index ordering logic 2011-08-02 21:07:51 +03:00
MoyuScript
86c1ee1601 added support for form element text value rendering 2011-07-29 22:55:01 +03:00
MoyuScript
e027a7496e fixed z-index ordering bug with backgrounds 2011-07-29 19:22:38 +03:00
MoyuScript
9ae4ae51fe fixed few minor bugs, added some support for overflow (hidden|scroll|auto) 2011-07-28 21:22:13 +03:00
MoyuScript
db9a1d16ad added support for proxys, fixed a lot of background position issues, added test console 2011-07-21 03:12:17 +03:00
MoyuScript
d8d560e9e8 minor fix for text positioning 2011-07-18 19:21:55 +03:00
MoyuScript
efe27ebd29 added performance boost for text rendering for Chrome & Firefox,
while retainining compatibility with Opera & custom text settings.
2011-07-18 15:57:21 +03:00
MoyuScript
9680086dec rebuilt source 2011-07-18 13:20:04 +03:00
MoyuScript
235cc4445d support for opacity 2011-07-18 00:59:36 +03:00
MoyuScript
fb2ec9c9fb Skipping visibility:hidden and display:none elements 2011-07-18 00:39:56 +03:00
MoyuScript
39ddb005fd added support for font-variant 2011-07-17 23:52:11 +03:00
MoyuScript
11b4a1a961 updated version to 0.20 2011-07-17 23:28:28 +03:00
MoyuScript
fcf819d4b8 added rendering stacks, queues and support z-index positioning 2011-07-17 23:27:45 +03:00
MoyuScript
76a1727777 Added timer/statistics for rendering 2011-07-17 02:42:45 +03:00
MoyuScript
e1a27c28f4 iframe fixes 2011-07-17 02:20:01 +03:00
MoyuScript
9680eb64ee fixed background-repeat / background-position problem in IE9 and Opera 2011-07-17 01:34:34 +03:00
MoyuScript
b8c1b644a9 fixed a few image issues related to padding and borders 2011-07-17 00:13:01 +03:00
MoyuScript
71b0727125 fixed text draw issue for opera 2011-07-16 23:56:49 +03:00
MoyuScript
30c8d30af5 added support for font-metrics, to find baseline information for text (text-decoration:underline) 2011-07-16 22:35:06 +03:00
MoyuScript
3e61535693 split files & created build file 2011-07-16 19:59:15 +03:00