Patrick Walton
708f9b4db5
Fix method names and dynamic borrow check failures
2013-05-30 18:14:50 -07:00
Eric Atkinson
d5e47933ab
Add horizontal borders, margins and padding. Broken until rust-css supports padding
2013-05-30 17:39:33 -07:00
Patrick Walton
facb70756c
Update rust-css and rust-netsurfcss
2013-05-30 17:38:00 -07:00
Patrick Walton
f77eef5988
Basic hit testing functionality
2013-05-30 17:28:08 -07:00
Tim Kuehn
ea1a406589
base and bounds methods for DisplayItem
2013-05-30 17:11:59 -07:00
Patrick Walton
2e4cecc718
Add flows if requested to the display list info.
...
This will be used for hit testing.
2013-05-30 16:10:35 -07:00
Patrick Walton
e2bcd3648e
Color links blue
2013-05-30 14:05:23 -07:00
Patrick Walton
dcfabb71d1
Don't try to remove whitespace twice if it's the only node.
...
Fixes a failure on Wikipedia.
2013-05-30 14:05:23 -07:00
Patrick Walton
02c57728c5
Fix corrupted textures when resizing.
2013-05-30 14:05:23 -07:00
Patrick Walton
d97f002111
Stop hammering on the compositor
2013-05-30 14:05:23 -07:00
Patrick Walton
67eb533fc6
Clamp scrolling to the page boundaries
2013-05-30 14:05:23 -07:00
Patrick Walton
2d1a00c3cf
Don't clip layers to the screen area
2013-05-30 14:05:22 -07:00
Patrick Walton
0af3bbf953
Add NSS and NSPR to the build
2013-05-30 14:05:22 -07:00
Patrick Walton
a1d12897e8
Add NSPR and NSS submodules
2013-05-30 14:05:22 -07:00
Patrick Walton
233a2040da
Implement the beginnings of the box model for render boxes
2013-05-30 14:05:22 -07:00
Patrick Walton
c14a137233
Update rust-geom
2013-05-30 14:05:22 -07:00
Jack Moffitt
50726a9c9d
Update README.md
...
Fix README typos.
2013-05-30 11:36:45 -05:00
bors-servo
273b6cfe29
auto merge of #476 : pcwalton/servo/display-list-refactor, r=pcwalton
...
r? @metajack
2013-05-30 00:42:39 -07:00
bors-servo
473b0941ec
auto merge of #474 : pcwalton/servo/separation, r=pcwalton
...
r? @metajack
2013-05-30 00:06:42 -07:00
bors-servo
90b01df4c3
auto merge of #466 : pcwalton/servo/phantom-type, r=pcwalton
...
See the explanation on the commit for more detail.
r? @metajack
2013-05-29 19:30:47 -07:00
Patrick Walton
6012a3e13e
Refactor display lists to use less memory.
2013-05-28 18:51:57 -07:00
Patrick Walton
0b22336c45
etc: Make tidy more resilient to dirty build directories
2013-05-28 17:48:55 -07:00
Patrick Walton
bf82bc54f3
Separate the DOM and layout into separate crates.
2013-05-28 17:13:40 -07:00
Patrick Walton
0ea1a94f8e
Remove the layout debug methods.
...
Premature abstraction; nothing used the traits polymorphically. Furthermore,
they increased coupling between layout and the DOM.
2013-05-28 16:55:07 -07:00
Patrick Walton
0a95672236
Reduce coupling between layout and the DOM by separating out the layout interface.
...
Eventually, the layout interface will be moved along with the DOM into a
separate crate.
2013-05-28 16:41:55 -07:00
Patrick Walton
83e1bd81e8
Fix merge fallout.
2013-05-28 16:16:34 -07:00
Patrick Walton
4f3ca373d4
Introduce a phantom type to prevent script from accessing the layout data directly.
...
Nodes are now parameterized over a "View" type. The particular View type
determines which methods can be called. Layout data accessors and mutators are
only accessible to nodes with a LayoutView. The only way to convert a
`Node<ScriptView>` to a `Node<LayoutView>` is through a transmutation, which is
done at the moment the layout task receives nodes. (This should be factored
better to contain the unsafety.)
We should also lock down DOM node mutation to the ScriptView to forbid data
races, but this patch doesn't do that.
This also reduces coupling between DOM and layout. Soon I would like to move
the DOM into its own crate, and this is a step on the way of doing that.
2013-05-28 15:40:47 -07:00
Patrick Walton
c7bce98236
Remove the servo-
prefix from core components.
2013-05-28 15:40:47 -07:00
Patrick Walton
c658c6dea9
Move the test harnesses into test/.
...
This is preparation for removing the `servo-` prefixes from the various
Servo components.
2013-05-28 15:40:39 -07:00
Patrick Walton
729a5ff441
Reduce the number of messages needed to exchange buffers from 3 to 2
2013-05-28 15:40:39 -07:00
Patrick Walton
6d16f11296
Merge pull request #488 from eric93/baseline_final
...
Align text at baseline
2013-05-28 15:32:19 -07:00
Eric Atkinson
1fd9a8f162
Merge with TextRenderBox refactor
2013-05-28 10:37:49 -07:00
Eric Atkinson
ad9fad097c
Tweak inline layout so text is baseline-aligned
2013-05-28 09:18:56 -07:00
bors-servo
8f33dfa360
auto merge of #485 : oncemoreification/servo/refactor_TextRenderBox, r=jdm
...
This removes the TextBoxData struct and places its properties directly on the TextRenderBox.
It also removes the font_size property from RenderBox's, in the thinking that this should be (and is) managed by stylers.
2013-05-27 16:27:32 -07:00
JJ Weber
5c8c776f0a
Refactor TextRenderBox to handle range and run data and let a RenderBox's style handle font size
2013-05-26 14:21:54 -07:00
bors-servo
5be7bfa14f
auto merge of #483 : oncemoreification/servo/fix_some_warnings, r=brson
...
Less yelling: https://github.com/mozilla/servo/issues/455
2013-05-25 16:30:33 -07:00
JJ Weber
1b3d19fb94
Unweird 'pub' token
2013-05-25 16:02:17 -07:00
JJ Weber
c6c9533cd1
Cleanup dynamic freeze scope artificially extended warnings
2013-05-25 16:02:17 -07:00
JJ Weber
3503cb3df9
Remove unused 'mut'
2013-05-25 16:02:17 -07:00
bors-servo
40cb22d270
auto merge of #481 : eric93/servo/underline_tweak, r=metajack
...
Fix style problems with last PR. Also better propagation of text-decoration.
2013-05-24 16:42:28 -07:00
Eric Atkinson
457008e1ee
Removed unnecessary FIXME
2013-05-24 14:57:01 -07:00
Eric Atkinson
656c741f21
Better propagation of text-decoration, though still not perfect. Also, boxes now cannot be merged if they have different text-decorations.
2013-05-24 14:39:03 -07:00
Eric Atkinson
e45ae15640
Fix style issues
2013-05-24 10:34:16 -07:00
Eric Atkinson
d4b837bba6
Clean up code a little
2013-05-24 09:12:02 -07:00
Eric Atkinson
1016e273a6
Fix rebase issues
2013-05-24 09:12:02 -07:00
Eric Atkinson
cd39d0931f
Added underline test
2013-05-24 09:12:02 -07:00
Eric Atkinson
135d11684c
Add underline to layout and gfx.
2013-05-24 09:12:02 -07:00
bors-servo
b9c33f8361
auto merge of #478 : tkuehn/servo/profiling, r=pcwalton
2013-05-23 19:03:29 -07:00
Tim Kuehn
207a4e1f43
comment on updating NUM_BUCKETS in time.rs
2013-05-23 18:50:29 -07:00
Tim Kuehn
089b1fc0c7
ProfilerMsg ==> ProfilerCategory; all enums end in Category; added const NUM_BUCKETS; other minor changes
2013-05-23 18:44:31 -07:00