mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Rebase.
This commit is contained in:
parent
0bc4ae6f36
commit
670c1deb2e
7 changed files with 21 additions and 12 deletions
|
@ -6,6 +6,7 @@ use util::range::Range;
|
||||||
use text::glyph::{GlyphStore, GlyphIndex};
|
use text::glyph::{GlyphStore, GlyphIndex};
|
||||||
use text::shaper::ShaperMethods;
|
use text::shaper::ShaperMethods;
|
||||||
use text::{Shaper, TextRun};
|
use text::{Shaper, TextRun};
|
||||||
|
use text::shaper::ShaperMethods;
|
||||||
|
|
||||||
use azure::{AzFloat, AzScaledFontRef, struct__AzDrawOptions, struct__AzGlyph};
|
use azure::{AzFloat, AzScaledFontRef, struct__AzDrawOptions, struct__AzGlyph};
|
||||||
use azure::{struct__AzGlyphBuffer, struct__AzPoint};
|
use azure::{struct__AzGlyphBuffer, struct__AzPoint};
|
||||||
|
@ -356,7 +357,13 @@ pub impl Font {
|
||||||
baseline_origin: Point2D<Au>,
|
baseline_origin: Point2D<Au>,
|
||||||
color: Color) {
|
color: Color) {
|
||||||
use core::libc::types::common::c99::{uint16_t, uint32_t};
|
use core::libc::types::common::c99::{uint16_t, uint32_t};
|
||||||
use azure::{AzDrawOptions, AzGlyph, AzGlyphBuffer};
|
use azure::{AzDrawOptions,
|
||||||
|
struct__AzDrawOptions,
|
||||||
|
AzGlyph,
|
||||||
|
struct__AzGlyph,
|
||||||
|
AzGlyphBuffer,
|
||||||
|
struct__AzGlyphBuffer,
|
||||||
|
struct__AzPoint};
|
||||||
use azure::azure::bindgen::{AzCreateColorPattern};
|
use azure::azure::bindgen::{AzCreateColorPattern};
|
||||||
use azure::azure::bindgen::{AzDrawTargetFillGlyphs};
|
use azure::azure::bindgen::{AzDrawTargetFillGlyphs};
|
||||||
use azure::azure::bindgen::{AzReleaseColorPattern};
|
use azure::azure::bindgen::{AzReleaseColorPattern};
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
use font::{CSSFontWeight, SpecifiedFontStyle, UsedFontStyle};
|
use font::{CSSFontWeight, SpecifiedFontStyle, UsedFontStyle};
|
||||||
use gfx_font::FontHandleMethods;
|
use gfx_font::FontHandleMethods;
|
||||||
use native::FontHandle;
|
use native::FontHandle;
|
||||||
|
use gfx_font::FontHandleMethods;
|
||||||
|
|
||||||
use core::hashmap::linear;
|
use core::hashmap::linear;
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ use font::{Font, FontTable, FontTableMethods, FontTableTag};
|
||||||
|
|
||||||
use text::glyph::{GlyphStore, GlyphIndex, GlyphData};
|
use text::glyph::{GlyphStore, GlyphIndex, GlyphData};
|
||||||
use text::shaper::ShaperMethods;
|
use text::shaper::ShaperMethods;
|
||||||
|
use gfx_font::{FontHandleMethods, FontTableMethods};
|
||||||
|
|
||||||
use servo_util::range;
|
use servo_util::range;
|
||||||
use util::range::Range;
|
use util::range::Range;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
use font_context::FontContext;
|
use font_context::FontContext;
|
||||||
use geometry::Au;
|
use geometry::Au;
|
||||||
use text::glyph::{BreakTypeNormal, GlyphStore};
|
use text::glyph::{BreakTypeNormal, GlyphStore};
|
||||||
use servo_gfx_font::{Font, FontDescriptor, RunMetrics};
|
use servo_gfx_font::{Font, FontDescriptor, RunMetrics, FontHandleMethods};
|
||||||
use servo_gfx_util::range::Range;
|
use servo_gfx_util::range::Range;
|
||||||
|
|
||||||
use core::libc::{c_void};
|
use core::libc::{c_void};
|
||||||
|
|
|
@ -221,6 +221,7 @@ pub fn parse_html(url: Url,
|
||||||
};
|
};
|
||||||
let css_chan = SharedChan(css_chan);
|
let css_chan = SharedChan(css_chan);
|
||||||
|
|
||||||
|
let resource_task2 = resource_task.clone();
|
||||||
// Spawn a JS parser to receive JavaScript.
|
// Spawn a JS parser to receive JavaScript.
|
||||||
let resource_task2 = resource_task.clone();
|
let resource_task2 = resource_task.clone();
|
||||||
let (js_port, js_chan): (Port<JSResult>, Chan<JSMessage>) =
|
let (js_port, js_chan): (Port<JSResult>, Chan<JSMessage>) =
|
||||||
|
|
|
@ -99,7 +99,6 @@ struct Layout {
|
||||||
image_cache_task: ImageCacheTask,
|
image_cache_task: ImageCacheTask,
|
||||||
local_image_cache: @mut LocalImageCache,
|
local_image_cache: @mut LocalImageCache,
|
||||||
from_content: Port<Msg>,
|
from_content: Port<Msg>,
|
||||||
|
|
||||||
font_ctx: @mut FontContext,
|
font_ctx: @mut FontContext,
|
||||||
// This is used to root reader data
|
// This is used to root reader data
|
||||||
layout_refs: ~[@mut LayoutData],
|
layout_refs: ~[@mut LayoutData],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue