aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/construct.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2014-11-03 16:54:31 -0700
committerbors-servo <metajack+bors@gmail.com>2014-11-03 16:54:31 -0700
commit39960f32e49c69977b185f91e587c9947b0b9a25 (patch)
tree5599b8ddce2ed3ec0a37fb599054fd5ac27bcf73 /components/layout/construct.rs
parent69f8b46f362a828ffaefe9623355bc1ad76dc5e0 (diff)
parent5043a6328446960f634907bd7f4893c34bbbe8d8 (diff)
downloadservo-39960f32e49c69977b185f91e587c9947b0b9a25.tar.gz
servo-39960f32e49c69977b185f91e587c9947b0b9a25.zip
auto merge of #3878 : zwarich/servo/remove-input-fragment, r=jdm
Fixes #3724.
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r--components/layout/construct.rs6
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)) |