зеркало из https://github.com/mozilla/gecko-dev.git
25a3c48305
There are a lot of check of `Document`'s editable state **with** comments. This means that it's unclear for developers that only `Document` node is editable in design mode. Additionally, there are some points which use composed document rather than uncomposed document even though the raw API uses uncomposed document. Comparing with the other browsers, checking uncomposed document is compatible behavior, i.e., nodes in shadow trees are not editable unless `contenteditable`. Therefore, `nsINode` should have a method to check whether it's in design mode or not. Note that it may be called with a node in UA widget. Therefore, this patch adds new checks if it's in UA widget subtree or native anonymous subtree, checking whether it's in design mode with its host. Differential Revision: https://phabricator.services.mozilla.com/D126764 |
||
---|---|---|
.. | ||
crashtests | ||
tests/mochitest | ||
MathMLElement.cpp | ||
MathMLElement.h | ||
MathMLElementFactory.cpp | ||
moz.build |