mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Fix macos interators, warnings, and updating submodules.
This commit is contained in:
parent
5d00b88e2c
commit
dd45751368
33 changed files with 41 additions and 46 deletions
10
Makefile.in
10
Makefile.in
|
@ -235,23 +235,23 @@ all: src/compiler/rust/rust-auto-clean-stamp servo package
|
|||
|
||||
$(DONE_util): $(DEPS_util)
|
||||
@$(call E, compile: $@)
|
||||
$(Q)$(RUSTC) $(RFLAGS_util) -o $@ $< && touch $@
|
||||
$(Q)$(RUSTC) $(RFLAGS_util) --out-dir src/components/util $< && touch $@
|
||||
|
||||
$(DONE_net): $(DEPS_net)
|
||||
@$(call E, compile: $@)
|
||||
$(Q)$(RUSTC) $(RFLAGS_net) -o $@ $< && touch $@
|
||||
$(Q)$(RUSTC) $(RFLAGS_net) --out-dir src/components/net $< && touch $@
|
||||
|
||||
$(DONE_msg): $(DEPS_msg)
|
||||
@$(call E, compile: $@)
|
||||
$(Q)$(RUSTC) $(RFLAGS_msg) -o $@ $< && touch $@
|
||||
$(Q)$(RUSTC) $(RFLAGS_msg) --out-dir src/components/msg $< && touch $@
|
||||
|
||||
$(DONE_gfx): $(DEPS_gfx)
|
||||
@$(call E, compile: $@)
|
||||
$(Q)$(RUSTC) $(RFLAGS_gfx) -o $@ $< && touch $@
|
||||
$(Q)$(RUSTC) $(RFLAGS_gfx) --out-dir src/components/gfx $< && touch $@
|
||||
|
||||
$(DONE_script): $(DEPS_script)
|
||||
@$(call E, compile: $@)
|
||||
$(Q)$(RUSTC) $(RFLAGS_script) -o $@ $< && touch $@
|
||||
$(Q)$(RUSTC) $(RFLAGS_script) --out-dir src/components/script $< && touch $@
|
||||
|
||||
BINDINGS_SRC = $(S)/src/components/script/dom/bindings/codegen
|
||||
|
||||
|
|
|
@ -125,8 +125,7 @@ impl FontFamily {
|
|||
|
||||
// TODO(Issue #190): if not in the fast path above, do
|
||||
// expensive matching of weights, etc.
|
||||
let this: &mut FontFamily = self; // FIXME: borrow checker workaround
|
||||
for entry in this.entries.iter() {
|
||||
for entry in self.entries.iter() {
|
||||
if (style.weight.is_bold() == entry.is_bold()) &&
|
||||
(style.italic == entry.is_italic()) {
|
||||
|
||||
|
|
|
@ -8,8 +8,6 @@ use platform::macos::font::FontHandle;
|
|||
|
||||
use core_text;
|
||||
|
||||
use std::result;
|
||||
|
||||
pub struct FontContextHandle {
|
||||
ctx: ()
|
||||
}
|
||||
|
@ -33,7 +31,7 @@ impl FontContextHandleMethods for FontContextHandle {
|
|||
style: UsedFontStyle)
|
||||
-> Result<FontHandle, ()> {
|
||||
let ctfont_result = core_text::font::new_from_name(name, style.pt_size);
|
||||
do result::chain(ctfont_result) |ctfont| {
|
||||
do ctfont_result.chain |ctfont| {
|
||||
FontHandle::new_from_CTFont(self, ctfont)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,6 @@ use core_foundation::array::CFArray;
|
|||
use core_foundation::base::CFWrapper;
|
||||
use core_foundation::string::{CFString, CFStringRef};
|
||||
use core_text::font_collection::CTFontCollectionMethods;
|
||||
use core_text::font_descriptor::CTFontDescriptorRef;
|
||||
use core_text;
|
||||
|
||||
use std::hashmap::HashMap;
|
||||
|
@ -31,22 +30,23 @@ impl FontListHandle {
|
|||
pub fn get_available_families(&self) -> FontFamilyMap {
|
||||
let family_names: CFArray<CFStringRef> = core_text::font_collection::get_family_names();
|
||||
let mut family_map: FontFamilyMap = HashMap::new();
|
||||
for &strref in family_names.each() {
|
||||
for strref in family_names.iter() {
|
||||
let family_name = CFString::wrap_shared(strref).to_str();
|
||||
debug!("Creating new FontFamily for family: %s", family_name);
|
||||
|
||||
let new_family = @mut FontFamily::new(family_name);
|
||||
family_map.insert(family_name, new_family);
|
||||
}
|
||||
return family_map;
|
||||
family_map
|
||||
}
|
||||
|
||||
pub fn load_variations_for_family(&self, family: @mut FontFamily) {
|
||||
debug!("Looking for faces of family: %s", family.family_name);
|
||||
|
||||
let family_collection = core_text::font_collection::create_for_family(family.family_name);
|
||||
for &CTFontDescriptorRef in family_collection.get_descriptors().each() {
|
||||
let desc = CFWrapper::wrap_shared(*descref);
|
||||
let family_descriptors = family_collection.get_descriptors();
|
||||
for descref in family_descriptors.iter() {
|
||||
let desc = CFWrapper::wrap_shared(descref);
|
||||
let font = core_text::font::new_from_descriptor(&desc, 0.0);
|
||||
let handle = FontHandle::new_from_CTFont(&self.fctx, font).unwrap();
|
||||
|
||||
|
|
|
@ -20,11 +20,9 @@ use gfx::opts::Opts;
|
|||
|
||||
use azure::azure_hl::{DataSourceSurface, DrawTarget, SourceSurfaceMethods, current_gl_context};
|
||||
use azure::azure::AzGLContext;
|
||||
use std::cell::Cell;
|
||||
use std::comm;
|
||||
use std::comm::{Chan, SharedChan, Port};
|
||||
use std::num::Orderable;
|
||||
use std::task;
|
||||
use std::vec;
|
||||
use std::rt::rtio::RtioTimer;
|
||||
use std::rt::io::timer::Timer;
|
||||
|
|
|
@ -39,7 +39,9 @@ use compositing::{CompositorChan, CompositorTask};
|
|||
use constellation::Constellation;
|
||||
use servo_msg::constellation_msg::{ExitMsg, InitLoadUrlMsg};
|
||||
|
||||
#[cfg(not(test))]
|
||||
use gfx::opts;
|
||||
|
||||
use servo_net::image_cache_task::ImageCacheTask;
|
||||
use servo_net::resource_task::ResourceTask;
|
||||
use servo_util::time::{Profiler, ProfilerChan, PrintMsg};
|
||||
|
@ -47,8 +49,8 @@ use servo_util::time::{Profiler, ProfilerChan, PrintMsg};
|
|||
pub use gfx::opts::Opts;
|
||||
pub use gfx::text;
|
||||
pub use servo_util::url::make_url;
|
||||
use std::cell::Cell;
|
||||
use std::comm;
|
||||
#[cfg(not(test))]
|
||||
use std::os;
|
||||
use std::rt::rtio::RtioTimer;
|
||||
use std::rt::io::timer::Timer;
|
||||
|
|
|
@ -666,7 +666,7 @@ impl WrapperCache {
|
|||
}
|
||||
|
||||
pub fn WrapNewBindingObject(cx: *JSContext, scope: *JSObject,
|
||||
mut value: @mut CacheableWrapper,
|
||||
value: @mut CacheableWrapper,
|
||||
vp: *mut JSVal) -> bool {
|
||||
unsafe {
|
||||
let cache = value.get_wrappercache();
|
||||
|
|
|
@ -54,7 +54,7 @@ use newcss::stylesheet::Stylesheet;
|
|||
use std::cast;
|
||||
use std::cell::Cell;
|
||||
use std::comm;
|
||||
use std::comm::{Chan, Port, SharedChan};
|
||||
use std::comm::{Port, SharedChan};
|
||||
use std::str::eq_slice;
|
||||
use std::task;
|
||||
use std::from_str::FromStr;
|
||||
|
|
|
@ -25,8 +25,6 @@ use servo_msg::constellation_msg::{PipelineId, SubpageId, RendererReadyMsg, Resi
|
|||
use servo_msg::constellation_msg::{LoadIframeUrlMsg};
|
||||
use servo_msg::constellation_msg;
|
||||
|
||||
use newcss::stylesheet::Stylesheet;
|
||||
|
||||
use std::cell::Cell;
|
||||
use std::comm;
|
||||
use std::comm::{Port, SharedChan};
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 78f84af79eb653fde2d50621fc3631043fa6fa9e
|
||||
Subproject commit 534d04eb6f598b8fea3afaeb9b99fec2768454bf
|
|
@ -1 +1 @@
|
|||
Subproject commit 980254dd840772c8ee5f37056e7bd9f4d93d5377
|
||||
Subproject commit 38d16a13910d1c3b221750a07018a9760bebfb84
|
|
@ -1 +1 @@
|
|||
Subproject commit 641af36389a7592ef0faea2488ec08bd144e9bfe
|
||||
Subproject commit 780fe7d22230d258feccff80bdd56867b22c96cd
|
|
@ -1 +1 @@
|
|||
Subproject commit 23bb17289846dd9486f633c0b5187c7ba333d943
|
||||
Subproject commit 0290c1608784e2dd7a227d3f198039fc1b3b9f1d
|
|
@ -1 +1 @@
|
|||
Subproject commit 77e9ed24ca7bb0f9a0b33d7fd888de2905dddcd4
|
||||
Subproject commit 27050029b7fa41e925e91e7e537cf7e24dac70a8
|
|
@ -1 +1 @@
|
|||
Subproject commit bf9d0ebf3e0283f8bdb505d29d93de9631f7877c
|
||||
Subproject commit 2893fd675c56f28cc0e653c7a7bb35a25ba0a032
|
|
@ -1 +1 @@
|
|||
Subproject commit 313e26f9202b44d09043485671bc903786c328e7
|
||||
Subproject commit a281f975cbada7fff6c50c1273b473a4c851ec8f
|
|
@ -1 +1 @@
|
|||
Subproject commit f155846fe043f9060fa05be696c203180e7371f7
|
||||
Subproject commit 5e2b771404291afd3c30a042624a1ddc6574c6d3
|
|
@ -1 +1 @@
|
|||
Subproject commit 4e9340d2549d0f62468254809b59d833c2e82595
|
||||
Subproject commit f3d6be90ed801dd4faaa55fb4f41d7cd98115003
|
|
@ -1 +1 @@
|
|||
Subproject commit 4e883bc2754d9d3b1ba21baa0603dd43b093cffd
|
||||
Subproject commit 9e23ca2383e8a362a879e5d71b82e4cd0252bfe8
|
|
@ -1 +1 @@
|
|||
Subproject commit b66cc67a1fa0a5a85eefdb0073d29e410f34f1f2
|
||||
Subproject commit 8ee78ad734438db57c26d8b5cb3bbc3f59bde76d
|
|
@ -1 +1 @@
|
|||
Subproject commit 3e2179942cb679a4f08c81674f4f8e4777f88cff
|
||||
Subproject commit faca82a71cad81b14b9e5948b1960037108dc2aa
|
|
@ -1 +1 @@
|
|||
Subproject commit 690f9062746e1fed5e0f027acc1b095db6b50c6f
|
||||
Subproject commit a9161832150798986f5034142eb0ecd86a9b3136
|
|
@ -1 +1 @@
|
|||
Subproject commit 41e63b6856b21ee21549dcb98618404d088513bc
|
||||
Subproject commit 028080a6cf41e66f7d426f0887b05aea1b4e445e
|
|
@ -1 +1 @@
|
|||
Subproject commit 4d576047b5b94d98669080f3ac25efa053024d7e
|
||||
Subproject commit ccbf99c3f3cbfa72ebc5335f7ad71cac05b142cd
|
|
@ -1 +1 @@
|
|||
Subproject commit 065db559d51051bd786836e2aba9c0bef4031ad7
|
||||
Subproject commit b99f72ccde8ca973add1246426540849ffc50792
|
|
@ -1 +1 @@
|
|||
Subproject commit e036183e152542cb2080e5b098b66efce1decf5a
|
||||
Subproject commit a23bb2fa8a8c86f24d7dd6af9e3dcab2f2f1d2b0
|
|
@ -1 +1 @@
|
|||
Subproject commit 9ea9b1411e0b98358c757e27eb026aac2c5948b2
|
||||
Subproject commit d353286e5584537d1491cbfd59ebe42be0196756
|
|
@ -1 +1 @@
|
|||
Subproject commit 69de03ef7e447d22593eb3e405257b07ff38aa71
|
||||
Subproject commit 48deba28f7bf50b8f6e76857c4e3be32e771a350
|
|
@ -1 +1 @@
|
|||
Subproject commit 6734e37c2023000d17c4ba4ada9826fc6263efd1
|
||||
Subproject commit a4821235aeabe80511e30edfed7111bece1ae5a6
|
|
@ -1 +1 @@
|
|||
Subproject commit 73f46084428a37021e7d0d77daaa7b8a18fface3
|
||||
Subproject commit bd06cd169cf68de03438f6ab9ab87bc62243774e
|
|
@ -1 +1 @@
|
|||
Subproject commit f19be6340c2d3fa9a12a53889ba5021a8f155073
|
||||
Subproject commit 7fd449b83240f29e48cdab5efe683ad092f9dd00
|
|
@ -1 +1 @@
|
|||
Subproject commit ae5fe3138298d276656715f5fdef021ce0a98c99
|
||||
Subproject commit 9cc13064c96e7749d09729e931f1d85da5088777
|
|
@ -1 +1 @@
|
|||
Subproject commit caa31c98eee0334b5881f6ced37ccee4eba7d28c
|
||||
Subproject commit 24f8390bc9c831c06f90668671da821b8e87f1a4
|
Loading…
Add table
Add a link
Reference in a new issue