mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
Auto merge of #18951 - mrobinson:later-id-assignment-for-clip-scroll-nodes, r=glennw,emilio
Wait as late as possible to assign ClipIds <!-- Please describe your changes on the following line: --> --- <!-- 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: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because they should not change behavior. <!-- 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/18951) <!-- Reviewable:end -->
This commit is contained in:
commit
f26aa3b016
8 changed files with 365 additions and 274 deletions
|
@ -61,7 +61,8 @@ fn test_common(display_list: &DisplayList, epoch: Epoch) -> PaintTimeMetrics {
|
|||
#[test]
|
||||
fn test_first_paint_setter() {
|
||||
let empty_display_list = DisplayList {
|
||||
list: Vec::new()
|
||||
list: Vec::new(),
|
||||
clip_scroll_nodes: Vec::new(),
|
||||
};
|
||||
let epoch = Epoch(0);
|
||||
let mut paint_time_metrics = test_common(&empty_display_list, epoch);
|
||||
|
@ -74,7 +75,7 @@ fn test_first_paint_setter() {
|
|||
#[test]
|
||||
fn test_first_contentful_paint_setter() {
|
||||
let image = DisplayItem::Image(Box::new(ImageDisplayItem {
|
||||
base: BaseDisplayItem::empty(TEST_PIPELINE_ID),
|
||||
base: BaseDisplayItem::empty(),
|
||||
webrender_image: WebRenderImageInfo {
|
||||
width: 1,
|
||||
height: 1,
|
||||
|
@ -87,7 +88,8 @@ fn test_first_contentful_paint_setter() {
|
|||
image_rendering: image_rendering::T::auto,
|
||||
}));
|
||||
let display_list = DisplayList {
|
||||
list: vec![image]
|
||||
list: vec![image],
|
||||
clip_scroll_nodes: Vec::new(),
|
||||
};
|
||||
let epoch = Epoch(0);
|
||||
let mut paint_time_metrics = test_common(&display_list, epoch);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue