humphd/mozilla-central — pull request #15 by diogogmt (2011-12-19 07:10:37+00:00)
Title: Updates to MouseLockable DOM validation

Fixes to the review item 6 - "nsDOMMouseLockable::ShouldLock...QI to nsINode and check IsInDoc()"

Instead of calling IsInDoc() on the element being locked to check if it's attached to a DOM Tree, [GetCurrentDocument()] (http://mxr.mozilla.org/mozilla-central/source/content/base/public/nsINode.h#442) is being called, so we can verify if the element is attached to a DOM tree, and if it belongs to the correct DOM in just one call.

I saved some [printf's] (http://pastebin.com/E9JrntLH)