mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
tidy: Add a rule ensuring that //
comments are followed by a space in Rust (#38698)
This shows up sometimes in code reviews, so it makes sense that tidy enforces it. `rustfmt` supports this via comment normalization, but it does many other things and is still an unstable feature (with bugs). Testing: There are new tidy tests for this change. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
8ca00a3b0c
commit
8743a11ba4
68 changed files with 169 additions and 152 deletions
|
@ -1502,7 +1502,7 @@ impl WindowMethods<crate::DomTypeHolder> for Window {
|
|||
}
|
||||
|
||||
// https://drafts.csswg.org/cssom-view/#dom-window-innerheight
|
||||
//TODO Include Scrollbar
|
||||
// TODO Include Scrollbar
|
||||
fn InnerHeight(&self) -> i32 {
|
||||
self.viewport_details
|
||||
.get()
|
||||
|
@ -1513,7 +1513,7 @@ impl WindowMethods<crate::DomTypeHolder> for Window {
|
|||
}
|
||||
|
||||
// https://drafts.csswg.org/cssom-view/#dom-window-innerwidth
|
||||
//TODO Include Scrollbar
|
||||
// TODO Include Scrollbar
|
||||
fn InnerWidth(&self) -> i32 {
|
||||
self.viewport_details.get().size.width.to_i32().unwrap_or(0)
|
||||
}
|
||||
|
@ -1611,7 +1611,7 @@ impl WindowMethods<crate::DomTypeHolder> for Window {
|
|||
// https://drafts.csswg.org/cssom-view/#dom-window-moveto
|
||||
fn MoveTo(&self, x: i32, y: i32) {
|
||||
// Step 1
|
||||
//TODO determine if this operation is allowed
|
||||
// TODO determine if this operation is allowed
|
||||
let dpr = self.device_pixel_ratio();
|
||||
let point = Point2D::new(x, y).to_f32() * dpr;
|
||||
let msg = EmbedderMsg::MoveTo(self.webview_id(), point.to_i32());
|
||||
|
@ -2019,13 +2019,13 @@ impl Window {
|
|||
.max(0.0f64);
|
||||
|
||||
// Step 10
|
||||
//TODO handling ongoing smooth scrolling
|
||||
// TODO handling ongoing smooth scrolling
|
||||
let scroll_offset = self.scroll_offset();
|
||||
if x == scroll_offset.x as f64 && y == scroll_offset.y as f64 {
|
||||
return;
|
||||
}
|
||||
|
||||
//TODO Step 11
|
||||
// TODO Step 11
|
||||
|
||||
// Step 12: Perform a scroll of the viewport to position, document’s root element
|
||||
// as the associated element, if there is one, or null otherwise, and the scroll
|
||||
|
@ -3313,7 +3313,7 @@ impl ParseErrorReporter for CSSErrorReporter {
|
|||
)
|
||||
}
|
||||
|
||||
//TODO: report a real filename
|
||||
// TODO: report a real filename
|
||||
let _ = self.script_chan.send(ScriptThreadMessage::ReportCSSError(
|
||||
self.pipelineid,
|
||||
url.0.to_string(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue