diff options
author | bors-servo <release+servo@mozilla.com> | 2014-02-27 11:14:27 -0500 |
---|---|---|
committer | bors-servo <release+servo@mozilla.com> | 2014-02-27 11:14:27 -0500 |
commit | ab72c473cde0cd69a44dc274d3ecf18207af785c (patch) | |
tree | 52774d8f8c13bef46b1ad0dbb492f4c9ed87a7ae /src/components/script/dom/element.rs | |
parent | 1a171129dc870194bb266f952cfb99cb8fb6d522 (diff) | |
parent | 59416c943101b7402721e2c8dc7bc06a925abcc9 (diff) | |
download | servo-ab72c473cde0cd69a44dc274d3ecf18207af785c.tar.gz servo-ab72c473cde0cd69a44dc274d3ecf18207af785c.zip |
auto merge of #1774 : Ms2ger/servo/element-noops, r=jdm
Diffstat (limited to 'src/components/script/dom/element.rs')
-rw-r--r-- | src/components/script/dom/element.rs | 77 |
1 files changed, 2 insertions, 75 deletions
diff --git a/src/components/script/dom/element.rs b/src/components/script/dom/element.rs index b3d5d06f38a..592511cd943 100644 --- a/src/components/script/dom/element.rs +++ b/src/components/script/dom/element.rs @@ -524,24 +524,7 @@ impl Element { HTMLCollection::new(&doc.get().window, ~[]) } - // http://dom.spec.whatwg.org/#dom-element-matches - pub fn MozMatchesSelector(&self, _selector: DOMString) -> Fallible<bool> { - // FIXME: stub - https://github.com/mozilla/servo/issues/1660 - Ok(false) - } - - pub fn SetCapture(&self, _retargetToElement: bool) { - } - - pub fn ReleaseCapture(&self) { - } - - pub fn MozRequestFullScreen(&self) { - } - - pub fn MozRequestPointerLock(&self) { - } - + // http://dev.w3.org/csswg/cssom-view/#dom-element-getclientrects pub fn GetClientRects(&self, abstract_self: &JS<Element>) -> JS<ClientRectList> { let doc = self.node.owner_doc(); let win = &doc.get().window; @@ -565,6 +548,7 @@ impl Element { ClientRectList::new(win, rects) } + // http://dev.w3.org/csswg/cssom-view/#dom-element-getboundingclientrect pub fn GetBoundingClientRect(&self, abstract_self: &JS<Element>) -> JS<ClientRect> { let doc = self.node.owner_doc(); let win = &doc.get().window; @@ -583,71 +567,14 @@ impl Element { } } - pub fn ScrollIntoView(&self, _top: bool) { - } - - pub fn ScrollTop(&self) -> i32 { - 0 - } - - pub fn SetScrollTop(&mut self, _scroll_top: i32) { - } - - pub fn ScrollLeft(&self) -> i32 { - 0 - } - - pub fn SetScrollLeft(&mut self, _scroll_left: i32) { - } - - pub fn ScrollWidth(&self) -> i32 { - 0 - } - - pub fn ScrollHeight(&self) -> i32 { - 0 - } - - pub fn ClientTop(&self) -> i32 { - 0 - } - - pub fn ClientLeft(&self) -> i32 { - 0 - } - - pub fn ClientWidth(&self) -> i32 { - 0 - } - - pub fn ClientHeight(&self) -> i32 { - 0 - } - pub fn GetInnerHTML(&self, abstract_self: &JS<Element>) -> Fallible<DOMString> { //XXX TODO: XML case Ok(serialize(&mut NodeIterator::new(NodeCast::from(abstract_self), false, false))) } - pub fn SetInnerHTML(&mut self, _abstract_self: &JS<Element>, _value: DOMString) -> ErrorResult { - Ok(()) - } - pub fn GetOuterHTML(&self, abstract_self: &JS<Element>) -> Fallible<DOMString> { Ok(serialize(&mut NodeIterator::new(NodeCast::from(abstract_self), true, false))) } - - pub fn SetOuterHTML(&mut self, _abstract_self: &JS<Element>, _value: DOMString) -> ErrorResult { - Ok(()) - } - - pub fn InsertAdjacentHTML(&mut self, _position: DOMString, _text: DOMString) -> ErrorResult { - Ok(()) - } - - pub fn QuerySelector(&self, _selectors: DOMString) -> Fallible<Option<JS<Element>>> { - Ok(None) - } } pub trait IElement { |