Don't attempt to update id or name for nodes that are already removed
https://bugs.webkit.org/show_bug.cgi?id=133041

Reviewed by Sam Weinig.

Source/WebCore: 

Tests: fast/dom/remove-element-with-id-that-was-inserted-on-DOMNodeRemoved.html
       fast/dom/remove-element-with-name-that-was-inserted-on-DOMNodeRemoved.html

* dom/Element.cpp:
(WebCore::Element::removedFrom): Skip updating ids and names for an element not
in a treescope, as we already do for elements not in a document.

LayoutTests: 
        
Test originally by Dan Bates.

* fast/dom/remove-element-with-id-that-was-inserted-on-DOMNodeRemoved-expected.txt: Added.
* fast/dom/remove-element-with-id-that-was-inserted-on-DOMNodeRemoved.html: Added.
* fast/dom/remove-element-with-name-that-was-inserted-on-DOMNodeRemoved-expected.txt: Added.
* fast/dom/remove-element-with-name-that-was-inserted-on-DOMNodeRemoved.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@169007 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WK2][cmake] Buildfix after r168994.

Patch by Martin Hodovan <mhodovan.u-szeged@partner.samsung.com> on 2014-05-18
Reviewed by Csaba Osztrogonác.

* CMakeLists.txt: Added new files to the build system introduced in r168994.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@169008 268f45cc-cd09-0410-ab3c-d52691b4dbfc