mirror of
https://github.com/servo/servo.git
synced 2025-08-28 08:38:20 +01:00
PR review
Signed-off-by: Ville Lindholm <ville@lindholm.dev>
This commit is contained in:
parent
cc4233a008
commit
5e586b75bb
1 changed files with 2 additions and 2 deletions
|
@ -1306,8 +1306,8 @@ impl Node {
|
||||||
.map(|data| data.element_data.borrow().styles.primary().clone())
|
.map(|data| data.element_data.borrow().styles.primary().clone())
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#language
|
/// <https://html.spec.whatwg.org/multipage/#language>
|
||||||
pub fn get_lang(&self) -> Option<String> {
|
pub(crate) fn get_lang(&self) -> Option<String> {
|
||||||
self.inclusive_ancestors(ShadowIncluding::Yes)
|
self.inclusive_ancestors(ShadowIncluding::Yes)
|
||||||
.filter_map(|node| {
|
.filter_map(|node| {
|
||||||
node.downcast::<Element>().and_then(|el| {
|
node.downcast::<Element>().and_then(|el| {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue