diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-03-16 06:57:53 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-03-16 06:57:53 -0600 |
commit | 1e1c97adb3cb44351df913daf8265de2edc74704 (patch) | |
tree | e2984aead361134b92544af139a4f21753a5bb63 /components/layout | |
parent | 4f32596cc65ee75b700089ebe4c6c5a9789559f6 (diff) | |
parent | cd84ab2ddc30f7b9453e7ce004d9ed33af44d981 (diff) | |
download | servo-1e1c97adb3cb44351df913daf8265de2edc74704.tar.gz servo-1e1c97adb3cb44351df913daf8265de2edc74704.zip |
auto merge of #5220 : dmarcos/servo/issue4595, r=jdm
Diffstat (limited to 'components/layout')
-rw-r--r-- | components/layout/block.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/components/layout/block.rs b/components/layout/block.rs index 7fb63c0045d..355c76aa473 100644 --- a/components/layout/block.rs +++ b/components/layout/block.rs @@ -732,11 +732,15 @@ impl BlockFlow { /// Return true if this has a replaced fragment. /// - /// The only two types of replaced fragments currently are text fragments - /// and image fragments. + /// Text, Images, Inline Block and + // Canvas (https://html.spec.whatwg.org/multipage/rendering.html#replaced-elements) + // fragments are considered as replaced fragments fn is_replaced_content(&self) -> bool { match self.fragment.specific { - SpecificFragmentInfo::ScannedText(_) | SpecificFragmentInfo::Image(_) | SpecificFragmentInfo::InlineBlock(_) => true, + SpecificFragmentInfo::ScannedText(_) | + SpecificFragmentInfo::Image(_) | + SpecificFragmentInfo::Canvas(_) | + SpecificFragmentInfo::InlineBlock(_) => true, _ => false, } } |