Let the clipboard crate handle the lack of clipboard support

This commit is contained in:
Paul Rouget 2018-09-12 04:53:06 +02:00
parent 795e7f6002
commit ec6cc56299
5 changed files with 6 additions and 29 deletions

View file

@ -437,11 +437,6 @@ impl WindowMethods for ServoCallbacks {
self.host_callbacks.flush();
}
fn supports_clipboard(&self) -> bool {
debug!("WindowMethods::supports_clipboard");
false
}
fn create_event_loop_waker(&self) -> Box<EventLoopWaker> {
debug!("WindowMethods::create_event_loop_waker");
self.waker.clone()

View file

@ -785,10 +785,6 @@ impl WindowMethods for Window {
fn prepare_for_composite(&self, _width: Length<u32, DevicePixel>, _height: Length<u32, DevicePixel>) -> bool {
true
}
fn supports_clipboard(&self) -> bool {
true
}
}
fn winit_phase_to_touch_event_type(phase: TouchPhase) -> TouchEventType {