mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Do not render the contents of block-level replaced elements.
Fixes #10733
This commit is contained in:
parent
75d99eec0f
commit
5a90c8f2bd
3 changed files with 17 additions and 19 deletions
|
@ -630,7 +630,7 @@ impl<T> PseudoElementType<T> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn is_before_or_after(&self) -> bool {
|
||||
pub fn is_replaced_content(&self) -> bool {
|
||||
match *self {
|
||||
PseudoElementType::Before(_) | PseudoElementType::After(_) => true,
|
||||
_ => false,
|
||||
|
@ -1041,7 +1041,7 @@ impl<'ln> ThreadSafeLayoutNode for ServoThreadSafeLayoutNode<'ln> {
|
|||
}
|
||||
|
||||
fn text_content(&self) -> TextContent {
|
||||
if self.pseudo.is_before_or_after() {
|
||||
if self.pseudo.is_replaced_content() {
|
||||
let data = &self.borrow_layout_data().unwrap().style_data;
|
||||
|
||||
let style = if self.pseudo.is_before() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue