mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Rollup merge of #7015 - mbrubeck:arc-box, r=Ms2ger
Replace Arc<Box<TextRun>> with Arc<TextRun> Removes an extraneous level of indirection. r? @pcwalton <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7015) <!-- Reviewable:end -->
This commit is contained in:
commit
b5f9c06776
5 changed files with 10 additions and 10 deletions
|
@ -824,7 +824,7 @@ pub struct TextDisplayItem {
|
|||
|
||||
/// The text run.
|
||||
#[ignore_heap_size_of = "Because it is non-owning"]
|
||||
pub text_run: Arc<Box<TextRun>>,
|
||||
pub text_run: Arc<TextRun>,
|
||||
|
||||
/// The range of text within the text run.
|
||||
pub range: Range<CharIndex>,
|
||||
|
|
|
@ -1264,7 +1264,7 @@ impl ToRadiiPx for BorderRadii<Au> {
|
|||
trait ScaledFontExtensionMethods {
|
||||
fn draw_text(&self,
|
||||
draw_target: &DrawTarget,
|
||||
run: &Box<TextRun>,
|
||||
run: &TextRun,
|
||||
range: &Range<CharIndex>,
|
||||
baseline_origin: Point2D<Au>,
|
||||
color: Color,
|
||||
|
@ -1274,7 +1274,7 @@ trait ScaledFontExtensionMethods {
|
|||
impl ScaledFontExtensionMethods for ScaledFont {
|
||||
fn draw_text(&self,
|
||||
draw_target: &DrawTarget,
|
||||
run: &Box<TextRun>,
|
||||
run: &TextRun,
|
||||
range: &Range<CharIndex>,
|
||||
baseline_origin: Point2D<Au>,
|
||||
color: Color,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue