diff options
author | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2016-05-09 16:20:19 +0900 |
---|---|---|
committer | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2016-05-10 02:36:54 +0900 |
commit | 4f064707483fdcc0fbe0551fb944f87b85302ed7 (patch) | |
tree | ccf6946c8d2e8195647df8a648da9b2419349fb9 /components/msg | |
parent | 58a9b31de274d952a390f672fdc541c7d502ad59 (diff) | |
download | servo-4f064707483fdcc0fbe0551fb944f87b85302ed7.tar.gz servo-4f064707483fdcc0fbe0551fb944f87b85302ed7.zip |
Move ConvertPipelineIdFromWebRender to compositing
Diffstat (limited to 'components/msg')
-rw-r--r-- | components/msg/constellation_msg.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/components/msg/constellation_msg.rs b/components/msg/constellation_msg.rs index 2a0cad52485..5114ae8a384 100644 --- a/components/msg/constellation_msg.rs +++ b/components/msg/constellation_msg.rs @@ -359,19 +359,6 @@ impl fmt::Display for PipelineId { #[derive(Clone, PartialEq, Eq, Copy, Hash, Debug, Deserialize, Serialize, HeapSizeOf)] pub struct SubpageId(pub u32); -pub trait ConvertPipelineIdFromWebRender { - fn from_webrender(&self) -> PipelineId; -} - -impl ConvertPipelineIdFromWebRender for webrender_traits::PipelineId { - fn from_webrender(&self) -> PipelineId { - PipelineId { - namespace_id: PipelineNamespaceId(self.0), - index: PipelineIndex(self.1), - } - } -} - /// [Policies](https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-states) /// for providing a referrer header for a request #[derive(HeapSizeOf, Clone, Deserialize, Serialize)] |