diff options
author | Cameron Zwarich <zwarich@mozilla.com> | 2014-11-03 15:48:20 -0800 |
---|---|---|
committer | Cameron Zwarich <zwarich@mozilla.com> | 2014-11-03 15:48:20 -0800 |
commit | 5043a6328446960f634907bd7f4893c34bbbe8d8 (patch) | |
tree | d41ba2e2bf456d74613f0ef43d4e059e015c7124 /components/layout/construct.rs | |
parent | 1a3ff8739c2a17d61f295f213f31ddee25e0b3ae (diff) | |
download | servo-5043a6328446960f634907bd7f4893c34bbbe8d8.tar.gz servo-5043a6328446960f634907bd7f4893c34bbbe8d8.zip |
Remove InputFragment
Fixes #3724.
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r-- | components/layout/construct.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs index 71b199af179..0c866184755 100644 --- a/components/layout/construct.rs +++ b/components/layout/construct.rs @@ -24,7 +24,7 @@ use flow_ref::FlowRef; use fragment::{Fragment, GenericFragment, IframeFragment, IframeFragmentInfo, ImageFragment}; use fragment::{ImageFragmentInfo, InlineAbsoluteHypotheticalFragment}; use fragment::{InlineAbsoluteHypotheticalFragmentInfo, InlineBlockFragment}; -use fragment::{InlineBlockFragmentInfo, InputFragment, SpecificFragmentInfo, TableCellFragment}; +use fragment::{InlineBlockFragmentInfo, SpecificFragmentInfo, TableCellFragment}; use fragment::{TableColumnFragment, TableColumnFragmentInfo, TableFragment, TableRowFragment}; use fragment::{TableWrapperFragment, UnscannedTextFragment, UnscannedTextFragmentInfo}; use incremental::{ReconstructFlow, RestyleDamage}; @@ -263,9 +263,6 @@ impl<'a> FlowConstructor<'a> { Some(ElementNodeTypeId(HTMLImageElementTypeId)) => { self.build_fragment_info_for_image(node, node.image_url()) } - Some(ElementNodeTypeId(HTMLInputElementTypeId)) => { - InputFragment - } Some(ElementNodeTypeId(HTMLObjectElementTypeId)) => { let data = node.get_object_data(); self.build_fragment_info_for_image(node, data) @@ -274,6 +271,7 @@ impl<'a> FlowConstructor<'a> { Some(ElementNodeTypeId(HTMLTableColElementTypeId)) => { TableColumnFragment(TableColumnFragmentInfo::new(node)) } + Some(ElementNodeTypeId(HTMLInputElementTypeId)) | Some(ElementNodeTypeId(HTMLTableDataCellElementTypeId)) | Some(ElementNodeTypeId(HTMLTableHeaderCellElementTypeId)) => TableCellFragment, Some(ElementNodeTypeId(HTMLTableRowElementTypeId)) | |