mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add libwapcaplet submodule (a dependency of libcss)
This commit is contained in:
parent
403a85b712
commit
375dd57887
7 changed files with 12 additions and 5 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -52,4 +52,7 @@
|
|||
[submodule "src/sharegl"]
|
||||
path = src/sharegl
|
||||
url = git://github.com/pcwalton/sharegl.git
|
||||
[submodule "src/libwapcaplet"]
|
||||
path = src/libwapcaplet
|
||||
url = git://github.com/pcwalton/libwapcaplet.git
|
||||
|
||||
|
|
2
configure
vendored
2
configure
vendored
|
@ -344,7 +344,7 @@ step_msg "running submodule autoconf scripts"
|
|||
|
||||
(cd ${CFG_SRC_DIR}src/mozjs/js/src && "${CFG_AUTOCONF213}") || exit $?
|
||||
|
||||
CFG_SUBMODULES="rust-harfbuzz rust-opengles rust-azure rust-stb-image rust-geom rust-glut rust-layers rust-http-client libparserutils libhubbub servo-sandbox rust-hubbub sharegl rust-mozjs mozjs"
|
||||
CFG_SUBMODULES="libwapcaplet rust-harfbuzz rust-opengles rust-azure rust-stb-image rust-geom rust-glut rust-layers rust-http-client libparserutils libhubbub servo-sandbox rust-hubbub sharegl rust-mozjs mozjs"
|
||||
|
||||
if [ $CFG_OSTYPE == "darwin" ]
|
||||
then
|
||||
|
|
1
src/libwapcaplet
Submodule
1
src/libwapcaplet
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit a7985f7732da1fa3e87087863c041c5b49ef6a8d
|
|
@ -89,9 +89,11 @@ trait DisplayListMethods {
|
|||
|
||||
impl DisplayList : DisplayListMethods {
|
||||
fn draw(ctx: &RenderContext) {
|
||||
debug!("beginning display list");
|
||||
for self.each |item| {
|
||||
debug!("drawing %?", *item);
|
||||
item.draw(*item, ctx);
|
||||
}
|
||||
debug!("ending display list");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,14 +39,14 @@ trait FlowDisplayListBuilderMethods {
|
|||
}
|
||||
|
||||
impl FlowContext: FlowDisplayListBuilderMethods {
|
||||
|
||||
fn build_display_list(builder: &DisplayListBuilder, dirty: &Rect<au>, list: &dl::DisplayList) {
|
||||
let zero = au::zero_point();
|
||||
self.build_display_list_recurse(builder, dirty, &zero, list);
|
||||
}
|
||||
|
||||
fn build_display_list_for_child(builder: &DisplayListBuilder, child: @FlowContext,
|
||||
dirty: &Rect<au>, offset: &Point2D<au>, list: &dl::DisplayList) {
|
||||
dirty: &Rect<au>, offset: &Point2D<au>,
|
||||
list: &dl::DisplayList) {
|
||||
|
||||
// adjust the dirty rect to child flow context coordinates
|
||||
let adj_dirty = dirty.translate(&child.d().position.origin);
|
||||
|
|
|
@ -161,6 +161,7 @@ impl FlowContext : InlineLayout {
|
|||
|
||||
// TODO: once we form line boxes and have their cached bounds, we can be
|
||||
// smarter and not recurse on a line if nothing in it can intersect dirty
|
||||
debug!("building display list for %u", self.inline().boxes.len());
|
||||
for self.inline().boxes.each |box| {
|
||||
box.build_display_list(builder, dirty, offset, list)
|
||||
}
|
||||
|
|
|
@ -87,7 +87,7 @@ fn should_get_glyph_advance() {
|
|||
let lib = FontCache();
|
||||
let font = lib.get_test_font();
|
||||
let x = font.glyph_h_advance(40u as GlyphIndex);
|
||||
assert x == 15;
|
||||
assert x == 15 || x == 16;
|
||||
}
|
||||
|
||||
// Testing thread safety
|
||||
|
@ -103,7 +103,7 @@ fn should_get_glyph_advance_stress() {
|
|||
let lib = FontCache();
|
||||
let font = lib.get_test_font();
|
||||
let x = font.glyph_h_advance(40u as GlyphIndex);
|
||||
assert x == 15;
|
||||
assert x == 15 || x == 16;
|
||||
chan.send(());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue