mirror of
https://github.com/servo/servo.git
synced 2025-10-01 00:59:15 +01:00
add window method for notifying when the <head> tag has been parsed
This commit is contained in:
parent
612cefa02d
commit
ffa2093012
10 changed files with 32 additions and 0 deletions
|
@ -391,6 +391,9 @@ impl WindowMethods for Window {
|
|||
}
|
||||
}
|
||||
|
||||
fn head_parsed(&self) {
|
||||
}
|
||||
|
||||
fn set_page_title(&self, string: Option<String>) {
|
||||
let browser = self.cef_browser.borrow();
|
||||
let browser = match *browser {
|
||||
|
|
|
@ -515,6 +515,9 @@ impl WindowMethods for Window {
|
|||
fn load_error(&self, _: NetError, _: String) {
|
||||
}
|
||||
|
||||
fn head_parsed(&self) {
|
||||
}
|
||||
|
||||
/// Has no effect on Android.
|
||||
fn set_cursor(&self, c: Cursor) {
|
||||
use glutin::MouseCursor;
|
||||
|
@ -706,6 +709,8 @@ impl WindowMethods for Window {
|
|||
}
|
||||
fn load_error(&self, _: NetError, _: String) {
|
||||
}
|
||||
fn head_parsed(&self) {
|
||||
}
|
||||
|
||||
fn set_cursor(&self, _: Cursor) {
|
||||
}
|
||||
|
|
|
@ -812,6 +812,9 @@ impl WindowMethods for Window {
|
|||
fn load_error(&self, _: NetError, _: String) {
|
||||
}
|
||||
|
||||
fn head_parsed(&self) {
|
||||
}
|
||||
|
||||
fn hidpi_factor(&self) -> ScaleFactor<ScreenPx, DevicePixel, f32> {
|
||||
ScaleFactor::new(1.0)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue