Skip to content

Commit ceed1d7

Browse files
authored
Doc: ensure detailed grid info types are public / documented (#822)
* Doc: export `DetailedGridTracksInfo` from a public module. This makes it possible for users to reference the type and also makes its documentation available in the rustdoc output. * Doc: markup urls as hyperlinks Signed-off-by: Nico Burns <[email protected]> --------- Signed-off-by: Nico Burns <[email protected]>
1 parent 4e4fe43 commit ceed1d7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/compute/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ pub fn compute_hidden_layout(tree: &mut (impl LayoutPartialTree + CacheTree), no
279279
#[cfg(feature = "detailed_layout_info")]
280280
pub mod detailed_info {
281281
#[cfg(feature = "grid")]
282-
pub use super::grid::DetailedGridInfo;
282+
pub use super::grid::{DetailedGridInfo, DetailedGridTracksInfo};
283283
}
284284

285285
#[cfg(test)]

src/style/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub trait CoreStyle {
5555
false
5656
}
5757
/// Is it a compressible replaced element?
58-
/// https://drafts.csswg.org/css-sizing-3/#min-content-zero
58+
/// <https://drafts.csswg.org/css-sizing-3/#min-content-zero>
5959
#[inline(always)]
6060
fn is_compressible_replaced(&self) -> bool {
6161
false
@@ -345,7 +345,7 @@ pub struct Style {
345345
/// This should really be part of `Display`, but it is currently seperate because table layout isn't implemented
346346
pub item_is_table: bool,
347347
/// Is it a replaced element like an image or form field?
348-
/// https://drafts.csswg.org/css-sizing-3/#min-content-zero
348+
/// <https://drafts.csswg.org/css-sizing-3/#min-content-zero>
349349
pub item_is_replaced: bool,
350350
/// Should size styles apply to the content box or the border box of the node
351351
pub box_sizing: BoxSizing,

0 commit comments

Comments
 (0)