mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
tidy: Fix rustdoc warnings and add a tidy check for a common URL issue (#33366)
This change fixes all rustdoc errors and also adds a tidy check for a very common rustdoc URL issue. Eventually rustdoc warnings should likely cause the build to fail, but this catches those issues sooner in order to not waste so much developer time. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
f6ae050077
commit
e70507ca40
19 changed files with 107 additions and 36 deletions
|
@ -78,17 +78,17 @@ impl ResizeObserverEntry {
|
|||
}
|
||||
|
||||
impl ResizeObserverEntryMethods for ResizeObserverEntry {
|
||||
/// https://drafts.csswg.org/resize-observer/#dom-resizeobserverentry-target
|
||||
/// <https://drafts.csswg.org/resize-observer/#dom-resizeobserverentry-target>
|
||||
fn Target(&self) -> DomRoot<Element> {
|
||||
DomRoot::from_ref(&*self.target)
|
||||
}
|
||||
|
||||
/// https://drafts.csswg.org/resize-observer/#dom-resizeobserverentry-contentrect
|
||||
/// <https://drafts.csswg.org/resize-observer/#dom-resizeobserverentry-contentrect>
|
||||
fn ContentRect(&self) -> DomRoot<DOMRectReadOnly> {
|
||||
DomRoot::from_ref(&*self.content_rect)
|
||||
}
|
||||
|
||||
/// https://drafts.csswg.org/resize-observer/#dom-resizeobserverentry-borderboxsize
|
||||
/// <https://drafts.csswg.org/resize-observer/#dom-resizeobserverentry-borderboxsize>
|
||||
fn BorderBoxSize(&self, cx: SafeJSContext) -> JSVal {
|
||||
let sizes: Vec<DomRoot<ResizeObserverSize>> = self
|
||||
.border_box_size
|
||||
|
@ -98,7 +98,7 @@ impl ResizeObserverEntryMethods for ResizeObserverEntry {
|
|||
to_frozen_array(sizes.as_slice(), cx)
|
||||
}
|
||||
|
||||
/// https://drafts.csswg.org/resize-observer/#dom-resizeobserverentry-contentboxsize
|
||||
/// <https://drafts.csswg.org/resize-observer/#dom-resizeobserverentry-contentboxsize>
|
||||
fn ContentBoxSize(&self, cx: SafeJSContext) -> JSVal {
|
||||
let sizes: Vec<DomRoot<ResizeObserverSize>> = self
|
||||
.content_box_size
|
||||
|
@ -108,7 +108,7 @@ impl ResizeObserverEntryMethods for ResizeObserverEntry {
|
|||
to_frozen_array(sizes.as_slice(), cx)
|
||||
}
|
||||
|
||||
/// https://drafts.csswg.org/resize-observer/#dom-resizeobserverentry-devicepixelcontentboxsize
|
||||
/// <https://drafts.csswg.org/resize-observer/#dom-resizeobserverentry-devicepixelcontentboxsize>
|
||||
fn DevicePixelContentBoxSize(&self, cx: SafeJSContext) -> JSVal {
|
||||
let sizes: Vec<DomRoot<ResizeObserverSize>> = self
|
||||
.device_pixel_content_box_size
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue