Commit graph

5232 commits

Author SHA1 Message Date
Jack Moffitt
59151ad3dc Add *.dSYM to clean targets. 2013-09-23 10:40:09 -06:00
Jack Moffitt
3f9ce9b55e Build rustc with debugging enabled. 2013-09-23 10:39:58 -06:00
Jack Moffitt
194864af97 Fix nss/nspr depdency chain. 2013-09-23 10:38:46 -06:00
Jack Moffitt
3de7a1e4f6 Fix huge bug in makefile prevent rust from building with debugging or with -O. 2013-09-23 10:38:26 -06:00
bors-servo
0096d119f0 auto merge of #968 : luisbg/servo/master, r=larsbergstrom
update_window_title() is called constantly in the compositor loop. This function
always changes the title to "Servo" when in idle state so it is spamming the X
server with constant changes. But this isn't necessary because updating the
title is taken care of when the Rendering or Ready state are changed in
set_ready_state() and set_render_state().

Fixes #830

Happy Software Freedom Day
2013-09-22 16:54:46 -07:00
Luis de Bethencourt
5a95a30e14 Removing unnecessary constant window title update
update_window_title() is called constantly in the compositor loop. This function
always changes the title to "Servo" when in idle state so it is spamming the X
server with constant changes. But this isn't necessary because updating the
title is taken care of when the Rendering or Ready state are changed in
set_ready_state() and set_render_state().

Fixes #830

Happy Software Freedom Day
2013-09-22 19:25:48 -04:00
bors-servo
4f8b20ecc1 auto merge of #953 : saneyuki/servo/test, r=jdm 2013-09-21 07:54:45 -07:00
Tetsuharu OHZEKI
795c07209b Enable to pass a test message. 2013-09-21 15:15:46 +09:00
bors-servo
e576a1cf7e auto merge of #961 : tikue/servo/master, r=kmcallister
* Profiler is now close to a no-op when ```-p``` is not passed in
* The profiler's printing ```Timer``` now stops looping when the profiler is closed
* Most task ```Chans``` are now newtype ```structs```
* Some more ```Cell``` removals in places where ```spawn_with``` is appropriate
2013-09-20 15:39:46 -07:00
Tim Kuehn
5f600f0ec0 fix constellation being inundated with messages from script.
script task sent RendererReadyMsg after every reflow.
now, the renderer sends RendererReady at the appropriate time,
and _only_ if it doesn't have paint permission.
2013-09-20 18:36:26 -04:00
Tim Kuehn
84d731712f cleaned up code in constellation to make it more maintainable 2013-09-20 18:36:15 -04:00
Tim Kuehn
9df66ff021 workaround for broken cross-crate generic newtype structs
add issue number for newtype struct issue
2013-09-20 17:25:08 -04:00
Tim Kuehn
c804db0f93 deactive profiler when not in use; use newtype structs for task chans 2013-09-20 17:25:08 -04:00
bors-servo
17864cb25d auto merge of #963 : larsbergstrom/servo/summit, r=jdm
We need to figure out what we need to implement/fix for the summit, and this page pulls together all of the elements we want to show.
2013-09-20 09:51:57 -07:00
Lars Bergstrom
ee4a468c13 Start pulling together summit demo elements 2013-09-20 11:40:36 -05:00
bors-servo
dafb2c3d7f auto merge of #959 : luisbg/servo/master, r=jdm
Issue #924
2013-09-19 21:09:14 -07:00
Luis de Bethencourt
cfd726f7d6 Rename the node field of the DOM node hierarchy
Renamed the Node elements

Fixes #924
2013-09-19 19:39:38 -04:00
Luis de Bethencourt
2dbd065d91 Rename the element field of the DOM Node hierarchy
Renamed htmlelement, and element

Fixes #924
2013-09-19 19:39:38 -04:00
bors-servo
0ca4c19b57 auto merge of #957 : kmcallister/servo/inline-js, r=jdm 2013-09-19 15:03:52 -07:00
bors-servo
b85497b76a auto merge of #958 : tikue/servo/master, r=pcwalton
Cells are generally less readable, and spawn_with makes many of them unnecessary.
2013-09-19 14:36:56 -07:00
Tim Kuehn
6c28b5cc9c use spawn_with in lieu of cells 2013-09-19 17:28:49 -04:00
Keegan McAllister
3bc7aa52cb Fix some missing end-of-file newlines 2013-09-19 14:00:32 -07:00
Keegan McAllister
62d402f668 Move test JS into HTML files
Fixes #896.
2013-09-19 13:58:04 -07:00
bors-servo
7ffcc29d54 auto merge of #955 : kmcallister/servo/bindings, r=metajack 2013-09-18 19:39:47 -07:00
bors-servo
849ff1b754 auto merge of #954 : jgraham/servo/clear_timeout, r=metajack 2013-09-18 18:45:53 -07:00
Keegan McAllister
73c1a12f30 bindings: Return errors in Result rather than setting an out parameter
Fixes #909.
2013-09-18 18:07:37 -07:00
James Graham
29a75daa66 Add support for clearTimeout. 2013-09-19 00:02:41 +01:00
Keegan McAllister
4b0680a136 Replace our rust_box with std::unstable::raw::Box
This will keep us in sync with compiler changes.  In fact we had the 'prev' and
'next' fields in the wrong order (but we aren't using them).
2013-09-18 14:57:12 -07:00
Keegan McAllister
68ddc6b4ab Make DOMString an alias for Option<~str>
Fixes #898.
2013-09-18 14:46:42 -07:00
bors-servo
5be084a3b6 auto merge of #951 : kmcallister/servo/debug-skia, r=metajack
Fixes #921.
2013-09-17 18:15:50 -07:00
Keegan McAllister
d8667a553b configure: Control Skia debugging with a separate --enable-debug-skia
Fixes #921.
2013-09-17 17:46:01 -07:00
bors-servo
1bc68f7eff auto merge of #944 : larsbergstrom/servo/iframe_display, r=pcwalton
The quadtree was checking to see if a window's position was within the clip region before drawing it. However, the window's position is in page-relative coordinates whereas the clip region is in window-relative coordinates. So, unless the iframe happened to fall in the clip range, it would never have tiles returned.

If an iframe had enough content that it spilled outside of its clip range, different logic was triggered that would cause it to receive a ReRenderMsg anyway, which circumvented all of this.

@eschweic, can you please review this if you have a minute? I believe that I've correctly captured the four checks we want to make (two each for ```x``` and ```y``` directions to determine if the window is in or out, but I'd appreciate another set of eyes on it.

For some example data, in a call to ```get_tile_rects``` for an iframe that is sized to 400x400 and is 428-ish pixels down the page, with a browser frame that is 600 total pixels tall, that function is called with:
window origin geom::point::Point2D<f32>{x: 9f32, y: 428.6000061f32}
window size geom::size::Size2D<f32>{width: 400f32, height: 171.3999939f32}
self origin geom::point::Point2D<f32>{x: 0f32, y: 0f32}
self size 512f32" 
clip: size::Size2D<f32>{width: 400f32, height: 400f32}
2013-09-17 17:04:13 -07:00
Lars Bergstrom
d6141edfd4 Change retrieval of buffers from sublayers to both clip relative
to the scrolled position of its parent layer and to offset the
origin, since each layer assumes that its origin is 0,0.
2013-09-17 17:40:56 -05:00
bors-servo
b77c3eaaa0 auto merge of #950 : jdm/servo/matrixmath, r=metajack 2013-09-17 10:24:49 -07:00
Josh Matthews
49f54377d3 Add large matrix multiplication demo. 2013-09-17 12:56:58 -04:00
bors-servo
585b047dda auto merge of #903 : ILyoan/servo/margin_collapse_fix, r=metajack 2013-09-17 07:27:50 -07:00
bors-servo
a67fda0f46 auto merge of #947 : jdm/servo/textcontent-setter2, r=metajack 2013-09-16 21:09:49 -07:00
Josh Matthews
89ed9580de Add a test for Node.textContent. 2013-09-16 23:42:10 -04:00
Josh Matthews
d465abdb1c Make all DOM manipulation wait until it's safe to do so (ie. all reflows for the page have completed). Fix a race where a newly-initiated reflow would be considered complete when receiving the completion notice for the previous reflow. 2013-09-16 23:41:34 -04:00
Josh Matthews
37787d55d0 Pass the AbstractNode into the Node.textContent setter. 2013-09-16 23:39:16 -04:00
bors-servo
77a09b2003 auto merge of #932 : june0cho/servo/text_deco, r=metajack
Implement 'overline' and 'line-through' in 'text-decoration' property. Add a test case.
2013-09-16 06:06:45 -07:00
Junyoung Cho
d4ab2fc520 Fix error: declare a module. 2013-09-16 17:28:38 +09:00
Junyoung Cho
7436c107c1 Fix android/font.rs. Add an issue in macos/font.rs 2013-09-16 14:08:22 +09:00
Ms2ger
bea1c4f01e Issue #852 - Implement the Node.textContent setter. 2013-09-14 11:30:22 -07:00
Ms2ger
b5457f7910 Introduce a createText function. 2013-09-14 11:30:22 -07:00
bors-servo
849fba27ab auto merge of #910 : metajack/servo/fix-create-element, r=jdm 2013-09-14 08:48:50 -07:00
bors-servo
bcc6c52507 auto merge of #940 : jdm/servo/imagefix, r=metajack 2013-09-14 08:18:55 -07:00
Jack Moffitt
0695e09568 Make CreateElement comply with the spec. 2013-09-14 09:07:20 -06:00
Josh Matthews
a3afd5e130 Add content harness timeout. 2013-09-13 23:51:13 -07:00
Josh Matthews
21b0fc35b6 Allow image prefetching to occur during parsing when no window or document is present. Fixes #939. 2013-09-13 23:10:31 -07:00