Chore: cleanup unused EmbedderMsg::WebDriverCommand (#37979)

Also fix doc for `WebDriverCommandMsg::GetWindowRect`.

Testing: No behaviour change.

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
This commit is contained in:
Euclid Ye 2025-07-10 20:54:46 +08:00 committed by GitHub
parent a475175949
commit 827261ab03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 1 additions and 4 deletions

View file

@ -246,7 +246,6 @@ mod from_script {
Self::FinishJavaScriptEvaluation(..) => {
target_variant!("FinishJavaScriptEvaluation")
},
Self::WebDriverCommand(..) => target_variant!("WebDriverCommand"),
}
}
}

View file

@ -998,7 +998,6 @@ impl Servo {
webview.delegate().show_form_control(webview, form_control);
}
},
_ => {},
}
}

View file

@ -425,7 +425,6 @@ pub enum EmbedderMsg {
JavaScriptEvaluationId,
Result<JSValue, JavaScriptEvaluationError>,
),
WebDriverCommand(WebDriverCommandMsg),
}
impl Debug for EmbedderMsg {

View file

@ -40,7 +40,7 @@ pub enum WebDriverCommandMsg {
/// Used in the initialization of the WebDriver server to set the sender for sending responses
/// back to the WebDriver client. It is set to constellation for now
SetWebDriverResponseSender(IpcSender<WebDriverCommandResponse>),
/// Get the window size.
/// Get the window rectangle.
GetWindowRect(WebViewId, IpcSender<DeviceIndependentIntRect>),
/// Get the viewport size.
GetViewportSize(WebViewId, IpcSender<Size2D<u32, DevicePixel>>),