aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/inline.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2023-09-01 11:58:48 +0200
committerGitHub <noreply@github.com>2023-09-01 09:58:48 +0000
commite9281e2eda53f45cf1c902a843158c1dc2494a89 (patch)
tree6c9d5be99b77a99a448444943c3d018f78f14dfa /components/layout/inline.rs
parent6eb3e165787449492ee12f3bd1a6f8529356f7e6 (diff)
downloadservo-e9281e2eda53f45cf1c902a843158c1dc2494a89.tar.gz
servo-e9281e2eda53f45cf1c902a843158c1dc2494a89.zip
build(deps): bump bitflags from 1.3.2 to 2.3.1 (#30273)
Bumps [bitflags](https://github.com/bitflags/bitflags) from 1.3.2 to 2.3.1. - [Release notes](https://github.com/bitflags/bitflags/releases) - [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md) - [Commits](https://github.com/bitflags/bitflags/compare/1.3.2...2.3.1)
Diffstat (limited to 'components/layout/inline.rs')
-rw-r--r--components/layout/inline.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/layout/inline.rs b/components/layout/inline.rs
index ee9980c4f1a..c7e7ee1027d 100644
--- a/components/layout/inline.rs
+++ b/components/layout/inline.rs
@@ -221,7 +221,7 @@ impl Line {
int_range_index! {
#[derive(Serialize)]
- #[doc = "The index of a fragment in a flattened vector of DOM elements."]
+ /// The index of a fragment in a flattened vector of DOM elements.
struct FragmentIndex(isize)
}
@@ -1658,7 +1658,7 @@ impl Flow for InlineFlow {
InlineFlow::set_inline_fragment_positions(
&mut self.fragments,
line,
- self.base.flags.text_align(),
+ self.base.text_align,
indentation,
line_index + 1 == line_count,
);
@@ -2053,6 +2053,7 @@ pub struct InlineFragmentNodeInfo {
}
bitflags! {
+ #[derive(Clone)]
pub struct InlineFragmentNodeFlags: u8 {
const FIRST_FRAGMENT_OF_ELEMENT = 0x01;
const LAST_FRAGMENT_OF_ELEMENT = 0x02;