mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #13848 - mrobinson:remove-layers, r=glennw
Remove concept of Layers from Servo <!-- 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 this PR should not change behavior. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Layers were a feature of the legacy drawing path. If we re-add them at some point, it probably makes more sense to make them a product of display list inspection. This change also remove a bunch of dead painting code. <!-- 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/13848) <!-- Reviewable:end -->
This commit is contained in:
commit
bb271ef4af
21 changed files with 57 additions and 745 deletions
|
@ -12,7 +12,7 @@ use euclid::point::TypedPoint2D;
|
|||
use euclid::scale_factor::ScaleFactor;
|
||||
use euclid::size::TypedSize2D;
|
||||
use gfx_traits::{DevicePixel, LayerPixel, StackingContextId};
|
||||
use gfx_traits::{Epoch, FrameTreeId, FragmentType, LayerId};
|
||||
use gfx_traits::{Epoch, FrameTreeId, FragmentType};
|
||||
use gleam::gl;
|
||||
use gleam::gl::types::{GLint, GLsizei};
|
||||
use image::{DynamicImage, ImageFormat, RgbImage};
|
||||
|
@ -523,9 +523,9 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
|||
self.title_for_main_frame();
|
||||
}
|
||||
|
||||
(Msg::ScrollFragmentPoint(pipeline_id, layer_id, point, _),
|
||||
(Msg::ScrollFragmentPoint(pipeline_id, point, _),
|
||||
ShutdownState::NotShuttingDown) => {
|
||||
self.scroll_fragment_to_point(pipeline_id, layer_id, point);
|
||||
self.scroll_fragment_to_point(pipeline_id, point);
|
||||
}
|
||||
|
||||
(Msg::MoveTo(point),
|
||||
|
@ -796,7 +796,6 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
|||
|
||||
fn scroll_fragment_to_point(&mut self,
|
||||
_pipeline_id: PipelineId,
|
||||
_layer_id: LayerId,
|
||||
_point: Point2D<f32>) {
|
||||
println!("TODO: Support scroll_fragment_to_point again");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue