Remove fields with parsed attribute values on HTMLTextAreaElement

https://github.com/servo/servo/issues/7863
This commit is contained in:
Corey Farwell 2015-12-30 11:38:56 -08:00
parent 0d52170f35
commit 3eb585f547
2 changed files with 20 additions and 32 deletions

View file

@ -51,7 +51,7 @@ use dom::htmltableelement::{HTMLTableElement, HTMLTableElementLayoutHelpers};
use dom::htmltablerowelement::{HTMLTableRowElement, HTMLTableRowElementLayoutHelpers};
use dom::htmltablesectionelement::{HTMLTableSectionElement, HTMLTableSectionElementLayoutHelpers};
use dom::htmltemplateelement::HTMLTemplateElement;
use dom::htmltextareaelement::{HTMLTextAreaElement, RawLayoutHTMLTextAreaElementHelpers};
use dom::htmltextareaelement::{HTMLTextAreaElement, LayoutHTMLTextAreaElementHelpers};
use dom::namednodemap::NamedNodeMap;
use dom::node::{CLICK_IN_PROGRESS, LayoutNodeHelpers, Node};
use dom::node::{NodeDamage, SEQUENTIALLY_FOCUSABLE, UnbindContext};
@ -440,7 +440,7 @@ impl LayoutElementHelpers for LayoutJS<Element> {
let cols = if let Some(this) = self.downcast::<HTMLTextAreaElement>() {
match (*this.unsafe_get()).get_cols_for_layout() {
match this.get_cols() {
0 => None,
c => Some(c as i32),
}
@ -462,7 +462,7 @@ impl LayoutElementHelpers for LayoutJS<Element> {
let rows = if let Some(this) = self.downcast::<HTMLTextAreaElement>() {
match (*this.unsafe_get()).get_rows_for_layout() {
match this.get_rows() {
0 => None,
r => Some(r as i32),
}