Bug 1026047, add IsInComposedDoc()/GetComposedDoc() and IsInUncomposedDoc()/GetUncomposedDoc() to make it more clear whether Shadow DOM is being handled, r=bz

--HG--
extra : rebase_source : 614cd9090b00039363e8a52f3060585f4a505b99