aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2018-01-09 13:27:32 +0100
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2018-02-13 09:12:00 +0100
commit2a4535f43e5566a9773ed9a31931e8ec9523a22b (patch)
tree96d8d6ff0e9361a6f26b375f1843cbf8c42b1a17 /components/script/dom/node.rs
parent0d7c2271c284bcc2d4bd005bd0e89f9a87eba636 (diff)
downloadservo-2a4535f43e5566a9773ed9a31931e8ec9523a22b.tar.gz
servo-2a4535f43e5566a9773ed9a31931e8ec9523a22b.zip
Implement element.innerText getter
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r--components/script/dom/node.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs
index ce97cb1ee4b..64b808c3859 100644
--- a/components/script/dom/node.rs
+++ b/components/script/dom/node.rs
@@ -2741,6 +2741,8 @@ impl Into<LayoutElementType> for ElementTypeId {
#[inline(always)]
fn into(self) -> LayoutElementType {
match self {
+ ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLBRElement) =>
+ LayoutElementType::HTMLBRElement,
ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLCanvasElement) =>
LayoutElementType::HTMLCanvasElement,
ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLIFrameElement) =>
@@ -2751,6 +2753,8 @@ impl Into<LayoutElementType> for ElementTypeId {
LayoutElementType::HTMLInputElement,
ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLObjectElement) =>
LayoutElementType::HTMLObjectElement,
+ ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLParagraphElement) =>
+ LayoutElementType::HTMLParagraphElement,
ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLTableCellElement(_)) =>
LayoutElementType::HTMLTableCellElement,
ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLTableColElement) =>