aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/fragment.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2018-04-02 22:24:34 -0400
committerGitHub <noreply@github.com>2018-04-02 22:24:34 -0400
commit9cd60c8e78af7b80e7578612ae442de26d1a325b (patch)
tree95cb4a7da49820c3c023c8c0ecab9d821f0ea32d /components/layout/fragment.rs
parenta208d4246cf0e02a1a22196f26692bd29fb35011 (diff)
parent8a1590efc6ab6690cd9aab5ec3d46f854b891b4f (diff)
downloadservo-9cd60c8e78af7b80e7578612ae442de26d1a325b.tar.gz
servo-9cd60c8e78af7b80e7578612ae442de26d1a325b.zip
Auto merge of #20447 - Brody-Eastwood:master, r=jdm
NCSU Canvas Rendering Project Initial Steps <!-- Please describe your changes on the following line: --> Implements the initial steps from: https://github.com/servo/servo/wiki/Canvas-rendering-project --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20447) <!-- Reviewable:end -->
Diffstat (limited to 'components/layout/fragment.rs')
-rw-r--r--components/layout/fragment.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs
index 68d5c7f6199..c4f90526785 100644
--- a/components/layout/fragment.rs
+++ b/components/layout/fragment.rs
@@ -8,7 +8,7 @@
use ServoArc;
use app_units::Au;
-use canvas_traits::canvas::CanvasMsg;
+use canvas_traits::canvas::{CanvasMsg, CanvasId};
use context::{LayoutContext, with_thread_local_font_context};
use display_list::ToLayout;
use euclid::{Point2D, Vector2D, Rect, Size2D};
@@ -345,6 +345,7 @@ pub struct CanvasFragmentInfo {
pub source: CanvasFragmentSource,
pub dom_width: Au,
pub dom_height: Au,
+ pub canvas_id: CanvasId,
}
impl CanvasFragmentInfo {
@@ -362,6 +363,7 @@ impl CanvasFragmentInfo {
source: source,
dom_width: Au::from_px(data.width as i32),
dom_height: Au::from_px(data.height as i32),
+ canvas_id: data.canvas_id,
}
}
}