mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 15:15:23 +00:00
3c53568904
--HG-- rename : editor/libeditor/html/TextEditorTest.cpp => editor/libeditor/TextEditorTest.cpp rename : editor/libeditor/html/TextEditorTest.h => editor/libeditor/TextEditorTest.h rename : editor/libeditor/html/TypeInState.cpp => editor/libeditor/TypeInState.cpp rename : editor/libeditor/html/TypeInState.h => editor/libeditor/TypeInState.h rename : editor/libeditor/html/crashtests/336081-1.xhtml => editor/libeditor/crashtests/336081-1.xhtml rename : editor/libeditor/html/crashtests/382778-1.html => editor/libeditor/crashtests/382778-1.html rename : editor/libeditor/html/crashtests/407074-1.html => editor/libeditor/crashtests/407074-1.html rename : editor/libeditor/html/crashtests/407277-1.html => editor/libeditor/crashtests/407277-1.html rename : editor/libeditor/html/crashtests/414178-1.html => editor/libeditor/crashtests/414178-1.html rename : editor/libeditor/html/crashtests/418923-1.html => editor/libeditor/crashtests/418923-1.html rename : editor/libeditor/html/crashtests/420439.html => editor/libeditor/crashtests/420439.html rename : editor/libeditor/html/crashtests/428489-1.html => editor/libeditor/crashtests/428489-1.html rename : editor/libeditor/html/crashtests/431086-1.xhtml => editor/libeditor/crashtests/431086-1.xhtml rename : editor/libeditor/html/crashtests/448329-1.html => editor/libeditor/crashtests/448329-1.html rename : editor/libeditor/html/crashtests/448329-2.html => editor/libeditor/crashtests/448329-2.html rename : editor/libeditor/html/crashtests/448329-3.html => editor/libeditor/crashtests/448329-3.html rename : editor/libeditor/html/crashtests/456727-1.html => editor/libeditor/crashtests/456727-1.html rename : editor/libeditor/html/crashtests/456727-2.html => editor/libeditor/crashtests/456727-2.html rename : editor/libeditor/html/crashtests/467647-1.html => editor/libeditor/crashtests/467647-1.html rename : editor/libeditor/html/crashtests/499844-1.html => editor/libeditor/crashtests/499844-1.html rename : editor/libeditor/html/crashtests/503709-1.xhtml => editor/libeditor/crashtests/503709-1.xhtml rename : editor/libeditor/html/crashtests/513375-1.xhtml => editor/libeditor/crashtests/513375-1.xhtml rename : editor/libeditor/html/crashtests/535632-1.xhtml => editor/libeditor/crashtests/535632-1.xhtml rename : editor/libeditor/html/crashtests/574558-1.xhtml => editor/libeditor/crashtests/574558-1.xhtml rename : editor/libeditor/html/crashtests/582138-1.xhtml => editor/libeditor/crashtests/582138-1.xhtml rename : editor/libeditor/html/crashtests/612565-1.html => editor/libeditor/crashtests/612565-1.html rename : editor/libeditor/html/crashtests/615015-1.html => editor/libeditor/crashtests/615015-1.html rename : editor/libeditor/html/crashtests/615450-1.html => editor/libeditor/crashtests/615450-1.html rename : editor/libeditor/html/crashtests/639736-1.xhtml => editor/libeditor/crashtests/639736-1.xhtml rename : editor/libeditor/html/crashtests/643786-1.html => editor/libeditor/crashtests/643786-1.html rename : editor/libeditor/html/crashtests/682650-1.html => editor/libeditor/crashtests/682650-1.html rename : editor/libeditor/html/crashtests/716456-1.html => editor/libeditor/crashtests/716456-1.html rename : editor/libeditor/html/crashtests/759748.html => editor/libeditor/crashtests/759748.html rename : editor/libeditor/html/crashtests/761861.html => editor/libeditor/crashtests/761861.html rename : editor/libeditor/html/crashtests/766305.html => editor/libeditor/crashtests/766305.html rename : editor/libeditor/html/crashtests/766387.html => editor/libeditor/crashtests/766387.html rename : editor/libeditor/html/crashtests/766795.html => editor/libeditor/crashtests/766795.html rename : editor/libeditor/html/crashtests/767169.html => editor/libeditor/crashtests/767169.html rename : editor/libeditor/html/crashtests/768748.html => editor/libeditor/crashtests/768748.html rename : editor/libeditor/html/crashtests/769008-1.html => editor/libeditor/crashtests/769008-1.html rename : editor/libeditor/html/crashtests/769967.xhtml => editor/libeditor/crashtests/769967.xhtml rename : editor/libeditor/html/crashtests/793866.html => editor/libeditor/crashtests/793866.html rename : editor/libeditor/html/nsEditProperty.cpp => editor/libeditor/nsEditProperty.cpp rename : editor/libeditor/html/nsHTMLAbsPosition.cpp => editor/libeditor/nsHTMLAbsPosition.cpp rename : editor/libeditor/html/nsHTMLAnonymousUtils.cpp => editor/libeditor/nsHTMLAnonymousUtils.cpp rename : editor/libeditor/html/nsHTMLCSSUtils.cpp => editor/libeditor/nsHTMLCSSUtils.cpp rename : editor/libeditor/html/nsHTMLCSSUtils.h => editor/libeditor/nsHTMLCSSUtils.h rename : editor/libeditor/html/nsHTMLDataTransfer.cpp => editor/libeditor/nsHTMLDataTransfer.cpp rename : editor/libeditor/html/nsHTMLEditRules.cpp => editor/libeditor/nsHTMLEditRules.cpp rename : editor/libeditor/html/nsHTMLEditRules.h => editor/libeditor/nsHTMLEditRules.h rename : editor/libeditor/html/nsHTMLEditUtils.cpp => editor/libeditor/nsHTMLEditUtils.cpp rename : editor/libeditor/html/nsHTMLEditUtils.h => editor/libeditor/nsHTMLEditUtils.h rename : editor/libeditor/html/nsHTMLEditor.cpp => editor/libeditor/nsHTMLEditor.cpp rename : editor/libeditor/html/nsHTMLEditor.h => editor/libeditor/nsHTMLEditor.h rename : editor/libeditor/html/nsHTMLEditorEventListener.cpp => editor/libeditor/nsHTMLEditorEventListener.cpp rename : editor/libeditor/html/nsHTMLEditorEventListener.h => editor/libeditor/nsHTMLEditorEventListener.h rename : editor/libeditor/html/nsHTMLEditorStyle.cpp => editor/libeditor/nsHTMLEditorStyle.cpp rename : editor/libeditor/html/nsHTMLInlineTableEditor.cpp => editor/libeditor/nsHTMLInlineTableEditor.cpp rename : editor/libeditor/html/nsHTMLObjectResizer.cpp => editor/libeditor/nsHTMLObjectResizer.cpp rename : editor/libeditor/html/nsHTMLObjectResizer.h => editor/libeditor/nsHTMLObjectResizer.h rename : editor/libeditor/html/nsHTMLURIRefObject.cpp => editor/libeditor/nsHTMLURIRefObject.cpp rename : editor/libeditor/html/nsHTMLURIRefObject.h => editor/libeditor/nsHTMLURIRefObject.h rename : editor/libeditor/html/nsTableEditor.cpp => editor/libeditor/nsTableEditor.cpp rename : editor/libeditor/html/nsWSRunObject.cpp => editor/libeditor/nsWSRunObject.cpp rename : editor/libeditor/html/nsWSRunObject.h => editor/libeditor/nsWSRunObject.h rename : editor/libeditor/html/tests/browserscope/lib/richtext/LICENSE => editor/libeditor/tests/browserscope/lib/richtext/LICENSE rename : editor/libeditor/html/tests/browserscope/lib/richtext/README => editor/libeditor/tests/browserscope/lib/richtext/README rename : editor/libeditor/html/tests/browserscope/lib/richtext/README.Mozilla => editor/libeditor/tests/browserscope/lib/richtext/README.Mozilla rename : editor/libeditor/html/tests/browserscope/lib/richtext/currentStatus.js => editor/libeditor/tests/browserscope/lib/richtext/currentStatus.js rename : editor/libeditor/html/tests/browserscope/lib/richtext/current_revision => editor/libeditor/tests/browserscope/lib/richtext/current_revision rename : editor/libeditor/html/tests/browserscope/lib/richtext/richtext/editable.html => editor/libeditor/tests/browserscope/lib/richtext/richtext/editable.html rename : editor/libeditor/html/tests/browserscope/lib/richtext/richtext/js/range.js => editor/libeditor/tests/browserscope/lib/richtext/richtext/js/range.js rename : editor/libeditor/html/tests/browserscope/lib/richtext/richtext/richtext.html => editor/libeditor/tests/browserscope/lib/richtext/richtext/richtext.html rename : editor/libeditor/html/tests/browserscope/lib/richtext/update_from_upstream => editor/libeditor/tests/browserscope/lib/richtext/update_from_upstream rename : editor/libeditor/html/tests/browserscope/lib/richtext2/LICENSE => editor/libeditor/tests/browserscope/lib/richtext2/LICENSE rename : editor/libeditor/html/tests/browserscope/lib/richtext2/README => editor/libeditor/tests/browserscope/lib/richtext2/README rename : editor/libeditor/html/tests/browserscope/lib/richtext2/README.Mozilla => editor/libeditor/tests/browserscope/lib/richtext2/README.Mozilla rename : editor/libeditor/html/tests/browserscope/lib/richtext2/currentStatus.js => editor/libeditor/tests/browserscope/lib/richtext2/currentStatus.js rename : editor/libeditor/html/tests/browserscope/lib/richtext2/current_revision => editor/libeditor/tests/browserscope/lib/richtext2/current_revision rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/__init__.py => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/__init__.py rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/common.py => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/common.py rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/handlers.py => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/handlers.py rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/static/common.css => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/static/common.css rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/static/editable-body.html => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/static/editable-body.html rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/static/editable-dM.html => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/static/editable-dM.html rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/static/editable-div.html => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/static/editable-div.html rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/static/editable.css => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/static/editable.css rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/static/js/canonicalize.js => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/static/js/canonicalize.js rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/static/js/compare.js => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/static/js/compare.js rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/static/js/output.js => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/static/js/output.js rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/static/js/pad.js => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/static/js/pad.js rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/static/js/range-bootstrap.js => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/static/js/range-bootstrap.js rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/static/js/range.js => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/static/js/range.js rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/static/js/run.js => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/static/js/run.js rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/static/js/units.js => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/static/js/units.js rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/static/js/variables.js => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/static/js/variables.js rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/templates/output.html => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/templates/output.html rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/templates/richtext2.html => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/templates/richtext2.html rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/tests/__init__.py => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/tests/__init__.py rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/tests/apply.py => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/tests/apply.py rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/tests/applyCSS.py => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/tests/applyCSS.py rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/tests/change.py => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/tests/change.py rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/tests/changeCSS.py => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/tests/changeCSS.py rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/tests/delete.py => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/tests/delete.py rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/tests/forwarddelete.py => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/tests/forwarddelete.py rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/tests/insert.py => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/tests/insert.py rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/tests/queryEnabled.py => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/tests/queryEnabled.py rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/tests/queryIndeterm.py => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/tests/queryIndeterm.py rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/tests/queryState.py => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/tests/queryState.py rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/tests/querySupported.py => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/tests/querySupported.py rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/tests/queryValue.py => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/tests/queryValue.py rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/tests/selection.py => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/tests/selection.py rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/tests/unapply.py => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/tests/unapply.py rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/tests/unapplyCSS.py => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/tests/unapplyCSS.py rename : editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/unittestexample.html => editor/libeditor/tests/browserscope/lib/richtext2/richtext2/unittestexample.html rename : editor/libeditor/html/tests/browserscope/lib/richtext2/update_from_upstream => editor/libeditor/tests/browserscope/lib/richtext2/update_from_upstream rename : editor/libeditor/html/tests/browserscope/mochitest.ini => editor/libeditor/tests/browserscope/mochitest.ini rename : editor/libeditor/html/tests/browserscope/test_richtext.html => editor/libeditor/tests/browserscope/test_richtext.html rename : editor/libeditor/html/tests/browserscope/test_richtext2.html => editor/libeditor/tests/browserscope/test_richtext2.html rename : editor/libeditor/html/tests/data/cfhtml-chromium.txt => editor/libeditor/tests/data/cfhtml-chromium.txt rename : editor/libeditor/html/tests/data/cfhtml-firefox.txt => editor/libeditor/tests/data/cfhtml-firefox.txt rename : editor/libeditor/html/tests/data/cfhtml-ie.txt => editor/libeditor/tests/data/cfhtml-ie.txt rename : editor/libeditor/html/tests/data/cfhtml-nocontext.txt => editor/libeditor/tests/data/cfhtml-nocontext.txt rename : editor/libeditor/html/tests/data/cfhtml-ooo.txt => editor/libeditor/tests/data/cfhtml-ooo.txt rename : editor/libeditor/html/tests/file_bug549262.html => editor/libeditor/tests/file_bug549262.html rename : editor/libeditor/html/tests/file_bug674770-1.html => editor/libeditor/tests/file_bug674770-1.html rename : editor/libeditor/html/tests/file_select_all_without_body.html => editor/libeditor/tests/file_select_all_without_body.html rename : editor/libeditor/html/tests/green.png => editor/libeditor/tests/green.png rename : editor/libeditor/html/tests/test_CF_HTML_clipboard.html => editor/libeditor/tests/test_CF_HTML_clipboard.html rename : editor/libeditor/html/tests/test_bug200416.html => editor/libeditor/tests/test_bug200416.html rename : editor/libeditor/html/tests/test_bug289384.html => editor/libeditor/tests/test_bug289384.html rename : editor/libeditor/html/tests/test_bug290026.html => editor/libeditor/tests/test_bug290026.html rename : editor/libeditor/html/tests/test_bug291780.html => editor/libeditor/tests/test_bug291780.html rename : editor/libeditor/html/tests/test_bug316447.html => editor/libeditor/tests/test_bug316447.html rename : editor/libeditor/html/tests/test_bug332636.html => editor/libeditor/tests/test_bug332636.html rename : editor/libeditor/html/tests/test_bug332636.html^headers^ => editor/libeditor/tests/test_bug332636.html^headers^ rename : editor/libeditor/html/tests/test_bug366682.html => editor/libeditor/tests/test_bug366682.html rename : editor/libeditor/html/tests/test_bug372345.html => editor/libeditor/tests/test_bug372345.html rename : editor/libeditor/html/tests/test_bug404320.html => editor/libeditor/tests/test_bug404320.html rename : editor/libeditor/html/tests/test_bug410986.html => editor/libeditor/tests/test_bug410986.html rename : editor/libeditor/html/tests/test_bug414526.html => editor/libeditor/tests/test_bug414526.html rename : editor/libeditor/html/tests/test_bug417418.html => editor/libeditor/tests/test_bug417418.html rename : editor/libeditor/html/tests/test_bug432225.html => editor/libeditor/tests/test_bug432225.html rename : editor/libeditor/html/tests/test_bug439808.html => editor/libeditor/tests/test_bug439808.html rename : editor/libeditor/html/tests/test_bug442186.html => editor/libeditor/tests/test_bug442186.html rename : editor/libeditor/html/tests/test_bug449243.html => editor/libeditor/tests/test_bug449243.html rename : editor/libeditor/html/tests/test_bug455992.html => editor/libeditor/tests/test_bug455992.html rename : editor/libeditor/html/tests/test_bug456244.html => editor/libeditor/tests/test_bug456244.html rename : editor/libeditor/html/tests/test_bug460740.html => editor/libeditor/tests/test_bug460740.html rename : editor/libeditor/html/tests/test_bug468353.html => editor/libeditor/tests/test_bug468353.html rename : editor/libeditor/html/tests/test_bug478725.html => editor/libeditor/tests/test_bug478725.html rename : editor/libeditor/html/tests/test_bug480647.html => editor/libeditor/tests/test_bug480647.html rename : editor/libeditor/html/tests/test_bug480972.html => editor/libeditor/tests/test_bug480972.html rename : editor/libeditor/html/tests/test_bug484181.html => editor/libeditor/tests/test_bug484181.html rename : editor/libeditor/html/tests/test_bug487524.html => editor/libeditor/tests/test_bug487524.html rename : editor/libeditor/html/tests/test_bug489202.xul => editor/libeditor/tests/test_bug489202.xul rename : editor/libeditor/html/tests/test_bug490879.xul => editor/libeditor/tests/test_bug490879.xul rename : editor/libeditor/html/tests/test_bug520189.html => editor/libeditor/tests/test_bug520189.html rename : editor/libeditor/html/tests/test_bug525389.html => editor/libeditor/tests/test_bug525389.html rename : editor/libeditor/html/tests/test_bug537046.html => editor/libeditor/tests/test_bug537046.html rename : editor/libeditor/html/tests/test_bug549262.html => editor/libeditor/tests/test_bug549262.html rename : editor/libeditor/html/tests/test_bug550434.html => editor/libeditor/tests/test_bug550434.html rename : editor/libeditor/html/tests/test_bug551704.html => editor/libeditor/tests/test_bug551704.html rename : editor/libeditor/html/tests/test_bug552782.html => editor/libeditor/tests/test_bug552782.html rename : editor/libeditor/html/tests/test_bug570144.html => editor/libeditor/tests/test_bug570144.html rename : editor/libeditor/html/tests/test_bug578771.html => editor/libeditor/tests/test_bug578771.html rename : editor/libeditor/html/tests/test_bug587461.html => editor/libeditor/tests/test_bug587461.html rename : editor/libeditor/html/tests/test_bug592592.html => editor/libeditor/tests/test_bug592592.html rename : editor/libeditor/html/tests/test_bug597784.html => editor/libeditor/tests/test_bug597784.html rename : editor/libeditor/html/tests/test_bug599322.html => editor/libeditor/tests/test_bug599322.html rename : editor/libeditor/html/tests/test_bug607584.html => editor/libeditor/tests/test_bug607584.html rename : editor/libeditor/html/tests/test_bug607584.xul => editor/libeditor/tests/test_bug607584.xul rename : editor/libeditor/html/tests/test_bug611182.html => editor/libeditor/tests/test_bug611182.html rename : editor/libeditor/html/tests/test_bug612128.html => editor/libeditor/tests/test_bug612128.html rename : editor/libeditor/html/tests/test_bug612447.html => editor/libeditor/tests/test_bug612447.html rename : editor/libeditor/html/tests/test_bug616590.xul => editor/libeditor/tests/test_bug616590.xul rename : editor/libeditor/html/tests/test_bug620906.html => editor/libeditor/tests/test_bug620906.html rename : editor/libeditor/html/tests/test_bug622371.html => editor/libeditor/tests/test_bug622371.html rename : editor/libeditor/html/tests/test_bug629845.html => editor/libeditor/tests/test_bug629845.html rename : editor/libeditor/html/tests/test_bug635636.html => editor/libeditor/tests/test_bug635636.html rename : editor/libeditor/html/tests/test_bug640321.html => editor/libeditor/tests/test_bug640321.html rename : editor/libeditor/html/tests/test_bug668599.html => editor/libeditor/tests/test_bug668599.html rename : editor/libeditor/html/tests/test_bug674770-1.html => editor/libeditor/tests/test_bug674770-1.html rename : editor/libeditor/html/tests/test_bug674770-2.html => editor/libeditor/tests/test_bug674770-2.html rename : editor/libeditor/html/tests/test_bug674861.html => editor/libeditor/tests/test_bug674861.html rename : editor/libeditor/html/tests/test_bug676401.html => editor/libeditor/tests/test_bug676401.html rename : editor/libeditor/html/tests/test_bug677752.html => editor/libeditor/tests/test_bug677752.html rename : editor/libeditor/html/tests/test_bug686203.html => editor/libeditor/tests/test_bug686203.html rename : editor/libeditor/html/tests/test_bug697842.html => editor/libeditor/tests/test_bug697842.html rename : editor/libeditor/html/tests/test_bug725069.html => editor/libeditor/tests/test_bug725069.html rename : editor/libeditor/html/tests/test_bug735059.html => editor/libeditor/tests/test_bug735059.html rename : editor/libeditor/html/tests/test_bug738366.html => editor/libeditor/tests/test_bug738366.html rename : editor/libeditor/html/tests/test_bug757371.html => editor/libeditor/tests/test_bug757371.html rename : editor/libeditor/html/tests/test_bug767684.html => editor/libeditor/tests/test_bug767684.html rename : editor/libeditor/html/tests/test_bug780035.html => editor/libeditor/tests/test_bug780035.html rename : editor/libeditor/html/tests/test_bug780908.xul => editor/libeditor/tests/test_bug780908.xul rename : editor/libeditor/html/tests/test_bug787432.html => editor/libeditor/tests/test_bug787432.html rename : editor/libeditor/html/tests/test_bug790475.html => editor/libeditor/tests/test_bug790475.html rename : editor/libeditor/html/tests/test_bug796839.html => editor/libeditor/tests/test_bug796839.html rename : editor/libeditor/html/tests/test_bug832025.html => editor/libeditor/tests/test_bug832025.html rename : editor/libeditor/html/tests/test_bug857487.html => editor/libeditor/tests/test_bug857487.html rename : editor/libeditor/html/tests/test_bug966155.html => editor/libeditor/tests/test_bug966155.html rename : editor/libeditor/html/tests/test_bug966552.html => editor/libeditor/tests/test_bug966552.html rename : editor/libeditor/html/tests/test_bug998188.html => editor/libeditor/tests/test_bug998188.html rename : editor/libeditor/html/tests/test_contenteditable_focus.html => editor/libeditor/tests/test_contenteditable_focus.html rename : editor/libeditor/html/tests/test_contenteditable_text_input_handling.html => editor/libeditor/tests/test_contenteditable_text_input_handling.html rename : editor/libeditor/html/tests/test_dom_input_event_on_htmleditor.html => editor/libeditor/tests/test_dom_input_event_on_htmleditor.html rename : editor/libeditor/html/tests/test_htmleditor_keyevent_handling.html => editor/libeditor/tests/test_htmleditor_keyevent_handling.html rename : editor/libeditor/html/tests/test_keypress_untrusted_event.html => editor/libeditor/tests/test_keypress_untrusted_event.html rename : editor/libeditor/html/tests/test_root_element_replacement.html => editor/libeditor/tests/test_root_element_replacement.html rename : editor/libeditor/html/tests/test_select_all_without_body.html => editor/libeditor/tests/test_select_all_without_body.html rename : editor/libeditor/html/tests/test_spellcheck_pref.html => editor/libeditor/tests/test_spellcheck_pref.html
420 lines
19 KiB
C++
420 lines
19 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef nsHTMLCSSUtils_h__
|
|
#define nsHTMLCSSUtils_h__
|
|
|
|
#include "nsCOMPtr.h" // for already_AddRefed
|
|
#include "nsTArray.h" // for nsTArray
|
|
#include "nscore.h" // for nsAString, nsresult, nullptr
|
|
|
|
class ChangeCSSInlineStyleTxn;
|
|
class nsComputedDOMStyle;
|
|
class nsIAtom;
|
|
class nsIContent;
|
|
class nsIDOMCSSStyleDeclaration;
|
|
class nsIDOMElement;
|
|
class nsIDOMNode;
|
|
class nsINode;
|
|
class nsString;
|
|
namespace mozilla {
|
|
namespace dom {
|
|
class Element;
|
|
} // namespace dom
|
|
} // namespace mozilla
|
|
|
|
class nsHTMLEditor;
|
|
class nsIDOMWindow;
|
|
|
|
typedef void (*nsProcessValueFunc)(const nsAString * aInputString, nsAString & aOutputString,
|
|
const char * aDefaultValueString,
|
|
const char * aPrependString, const char* aAppendString);
|
|
|
|
class nsHTMLCSSUtils
|
|
{
|
|
public:
|
|
explicit nsHTMLCSSUtils(nsHTMLEditor* aEditor);
|
|
~nsHTMLCSSUtils();
|
|
|
|
enum nsCSSEditableProperty {
|
|
eCSSEditableProperty_NONE=0,
|
|
eCSSEditableProperty_background_color,
|
|
eCSSEditableProperty_background_image,
|
|
eCSSEditableProperty_border,
|
|
eCSSEditableProperty_caption_side,
|
|
eCSSEditableProperty_color,
|
|
eCSSEditableProperty_float,
|
|
eCSSEditableProperty_font_family,
|
|
eCSSEditableProperty_font_size,
|
|
eCSSEditableProperty_font_style,
|
|
eCSSEditableProperty_font_weight,
|
|
eCSSEditableProperty_height,
|
|
eCSSEditableProperty_list_style_type,
|
|
eCSSEditableProperty_margin_left,
|
|
eCSSEditableProperty_margin_right,
|
|
eCSSEditableProperty_text_align,
|
|
eCSSEditableProperty_text_decoration,
|
|
eCSSEditableProperty_vertical_align,
|
|
eCSSEditableProperty_whitespace,
|
|
eCSSEditableProperty_width
|
|
};
|
|
|
|
enum StyleType { eSpecified, eComputed };
|
|
|
|
|
|
struct CSSEquivTable {
|
|
nsCSSEditableProperty cssProperty;
|
|
nsProcessValueFunc processValueFunctor;
|
|
const char * defaultValue;
|
|
const char * prependValue;
|
|
const char * appendValue;
|
|
bool gettable;
|
|
bool caseSensitiveValue;
|
|
};
|
|
|
|
/** answers true if the given combination element_name/attribute_name
|
|
* has a CSS equivalence in this implementation
|
|
*
|
|
* @return a boolean saying if the tag/attribute has a css equiv
|
|
* @param aNode [IN] a DOM node
|
|
* @param aProperty [IN] an atom containing a HTML tag name
|
|
* @param aAttribute [IN] a string containing the name of a HTML
|
|
* attribute carried by the element above
|
|
*/
|
|
bool IsCSSEditableProperty(nsIContent* aNode, nsIAtom* aProperty, const nsAString* aAttribute);
|
|
bool IsCSSEditableProperty(nsIDOMNode* aNode, nsIAtom* aProperty, const nsAString* aAttribute);
|
|
|
|
/** adds/remove a CSS declaration to the STYLE atrribute carried by a given element
|
|
*
|
|
* @param aElement [IN] a DOM element
|
|
* @param aProperty [IN] an atom containing the CSS property to set
|
|
* @param aValue [IN] a string containing the value of the CSS property
|
|
* @param aSuppressTransaction [IN] a boolean indicating, when true,
|
|
* that no transaction should be recorded
|
|
*/
|
|
nsresult SetCSSProperty(nsIDOMElement * aElement, nsIAtom * aProperty,
|
|
const nsAString & aValue,
|
|
bool aSuppressTransaction);
|
|
nsresult SetCSSPropertyPixels(nsIDOMElement *aElement, nsIAtom *aProperty,
|
|
int32_t aIntValue, bool aSuppressTxn);
|
|
nsresult RemoveCSSProperty(nsIDOMElement * aElement, nsIAtom * aProperty,
|
|
const nsAString & aPropertyValue, bool aSuppressTransaction);
|
|
|
|
/** directly adds/remove a CSS declaration to the STYLE atrribute carried by
|
|
* a given element without going through the txn manager
|
|
*
|
|
* @param aElement [IN] a DOM element
|
|
* @param aProperty [IN] a string containing the CSS property to set/remove
|
|
* @param aValue [IN] a string containing the new value of the CSS property
|
|
*/
|
|
nsresult SetCSSProperty(nsIDOMElement * aElement,
|
|
const nsAString & aProperty,
|
|
const nsAString & aValue);
|
|
nsresult SetCSSPropertyPixels(nsIDOMElement * aElement,
|
|
const nsAString & aProperty,
|
|
int32_t aIntValue);
|
|
|
|
/** gets the specified/computed style value of a CSS property for a given node (or its element
|
|
* ancestor if it is not an element)
|
|
*
|
|
* @param aNode [IN] a DOM node
|
|
* @param aProperty [IN] an atom containing the CSS property to get
|
|
* @param aPropertyValue [OUT] the retrieved value of the property
|
|
*/
|
|
nsresult GetSpecifiedProperty(nsIDOMNode *aNode, nsIAtom *aProperty,
|
|
nsAString & aValue);
|
|
nsresult GetComputedProperty(nsIDOMNode *aNode, nsIAtom *aProperty,
|
|
nsAString & aValue);
|
|
|
|
/** Removes a CSS property from the specified declarations in STYLE attribute
|
|
** and removes the node if it is an useless span
|
|
*
|
|
* @param aNode [IN] the specific node we want to remove a style from
|
|
* @param aProperty [IN] the CSS property atom to remove
|
|
* @param aPropertyValue [IN] the value of the property we have to rremove if the property
|
|
* accepts more than one value
|
|
*/
|
|
nsresult RemoveCSSInlineStyle(nsIDOMNode * aNode, nsIAtom * aProperty, const nsAString & aPropertyValue);
|
|
|
|
/** Answers true is the property can be removed by setting a "none" CSS value
|
|
* on a node
|
|
*
|
|
* @return a boolean saying if the property can be remove by setting a "none" value
|
|
* @param aProperty [IN] an atom containing a CSS property
|
|
* @param aAttribute [IN] pointer to an attribute name or null if this information is irrelevant
|
|
*/
|
|
bool IsCSSInvertable(nsIAtom * aProperty, const nsAString * aAttribute);
|
|
|
|
/** Get the default browser background color if we need it for GetCSSBackgroundColorState
|
|
*
|
|
* @param aColor [OUT] the default color as it is defined in prefs
|
|
*/
|
|
void GetDefaultBackgroundColor(nsAString & aColor);
|
|
|
|
/** Get the default length unit used for CSS Indent/Outdent
|
|
*
|
|
* @param aLengthUnit [OUT] the default length unit as it is defined in prefs
|
|
*/
|
|
void GetDefaultLengthUnit(nsAString & aLengthUnit);
|
|
|
|
/** returns the list of values for the CSS equivalences to
|
|
* the passed HTML style for the passed node
|
|
*
|
|
* @param aNode [IN] a DOM node
|
|
* @param aHTMLProperty [IN] an atom containing an HTML property
|
|
* @param aAttribute [IN] a pointer to an attribute name or nullptr if irrelevant
|
|
* @param aValueString [OUT] the list of css values
|
|
* @param aStyleType [IN] eSpecified or eComputed
|
|
*/
|
|
nsresult GetCSSEquivalentToHTMLInlineStyleSet(nsINode* aNode,
|
|
nsIAtom * aHTMLProperty,
|
|
const nsAString * aAttribute,
|
|
nsAString & aValueString,
|
|
StyleType aStyleType);
|
|
|
|
/** Does the node aNode (or his parent if it is not an element node) carries
|
|
* the CSS equivalent styles to the HTML style for this node ?
|
|
*
|
|
* @param aNode [IN] a DOM node
|
|
* @param aHTMLProperty [IN] an atom containing an HTML property
|
|
* @param aAttribute [IN] a pointer to an attribute name or nullptr if irrelevant
|
|
* @param aIsSet [OUT] a boolean being true if the css properties are set
|
|
* @param aValueString [IN/OUT] the attribute value (in) the list of css values (out)
|
|
* @param aStyleType [IN] eSpecified or eComputed
|
|
*
|
|
* The nsIContent variant returns aIsSet instead of using an out parameter.
|
|
*/
|
|
bool IsCSSEquivalentToHTMLInlineStyleSet(nsIContent* aContent,
|
|
nsIAtom* aProperty,
|
|
const nsAString* aAttribute,
|
|
const nsAString& aValue,
|
|
StyleType aStyleType);
|
|
|
|
nsresult IsCSSEquivalentToHTMLInlineStyleSet(nsIDOMNode * aNode,
|
|
nsIAtom * aHTMLProperty,
|
|
const nsAString * aAttribute,
|
|
bool & aIsSet,
|
|
nsAString & aValueString,
|
|
StyleType aStyleType);
|
|
|
|
/** Adds to the node the CSS inline styles equivalent to the HTML style
|
|
* and return the number of CSS properties set by the call
|
|
*
|
|
* @param aNode [IN] a DOM node
|
|
* @param aHTMLProperty [IN] an atom containing an HTML property
|
|
* @param aAttribute [IN] a pointer to an attribute name or nullptr if irrelevant
|
|
* @param aValue [IN] the attribute value
|
|
* @param aCount [OUT] the number of CSS properties set by the call
|
|
* @param aSuppressTransaction [IN] a boolean indicating, when true,
|
|
* that no transaction should be recorded
|
|
*
|
|
* aCount is returned by the dom::Element variant instead of being an out
|
|
* parameter.
|
|
*/
|
|
int32_t SetCSSEquivalentToHTMLStyle(mozilla::dom::Element* aElement,
|
|
nsIAtom* aProperty,
|
|
const nsAString* aAttribute,
|
|
const nsAString* aValue,
|
|
bool aSuppressTransaction);
|
|
nsresult SetCSSEquivalentToHTMLStyle(nsIDOMNode * aNode,
|
|
nsIAtom * aHTMLProperty,
|
|
const nsAString * aAttribute,
|
|
const nsAString * aValue,
|
|
int32_t * aCount,
|
|
bool aSuppressTransaction);
|
|
|
|
/** removes from the node the CSS inline styles equivalent to the HTML style
|
|
*
|
|
* @param aNode [IN] a DOM node
|
|
* @param aHTMLProperty [IN] an atom containing an HTML property
|
|
* @param aAttribute [IN] a pointer to an attribute name or nullptr if irrelevant
|
|
* @param aValue [IN] the attribute value
|
|
* @param aSuppressTransaction [IN] a boolean indicating, when true,
|
|
* that no transaction should be recorded
|
|
*/
|
|
nsresult RemoveCSSEquivalentToHTMLStyle(nsIDOMNode * aNode,
|
|
nsIAtom *aHTMLProperty,
|
|
const nsAString *aAttribute,
|
|
const nsAString *aValue,
|
|
bool aSuppressTransaction);
|
|
/** removes from the node the CSS inline styles equivalent to the HTML style
|
|
*
|
|
* @param aElement [IN] a DOM Element (must not be null)
|
|
* @param aHTMLProperty [IN] an atom containing an HTML property
|
|
* @param aAttribute [IN] a pointer to an attribute name or nullptr if irrelevant
|
|
* @param aValue [IN] the attribute value
|
|
* @param aSuppressTransaction [IN] a boolean indicating, when true,
|
|
* that no transaction should be recorded
|
|
*/
|
|
nsresult RemoveCSSEquivalentToHTMLStyle(mozilla::dom::Element* aElement,
|
|
nsIAtom* aHTMLProperty,
|
|
const nsAString* aAttribute,
|
|
const nsAString* aValue,
|
|
bool aSuppressTransaction);
|
|
|
|
/** parses a "xxxx.xxxxxuuu" string where x is a digit and u an alpha char
|
|
* we need such a parser because nsIDOMCSSStyleDeclaration::GetPropertyCSSValue() is not
|
|
* implemented
|
|
*
|
|
* @param aString [IN] input string to parse
|
|
* @param aValue [OUT] numeric part
|
|
* @param aUnit [OUT] unit part
|
|
*/
|
|
void ParseLength(const nsAString & aString, float * aValue, nsIAtom ** aUnit);
|
|
|
|
/** sets the mIsCSSPrefChecked private member ; used as callback from observer when
|
|
* the css pref state is changed
|
|
*
|
|
* @param aIsCSSPrefChecked [IN] the new boolean state for the pref
|
|
*/
|
|
void SetCSSEnabled(bool aIsCSSPrefChecked);
|
|
|
|
/** retrieves the mIsCSSPrefChecked private member, true if the css pref is checked,
|
|
* false if it is not
|
|
*
|
|
* @return the boolean value of the css pref
|
|
*/
|
|
bool IsCSSPrefChecked();
|
|
|
|
/** ElementsSameStyle compares two elements and checks if they have the same
|
|
* specified CSS declarations in the STYLE attribute
|
|
* The answer is always false if at least one of them carries an ID or a class
|
|
*
|
|
* @return true if the two elements are considered to have same styles
|
|
* @param aFirstNode [IN] a DOM node
|
|
* @param aSecondNode [IN] a DOM node
|
|
*/
|
|
bool ElementsSameStyle(mozilla::dom::Element* aFirstNode,
|
|
mozilla::dom::Element* aSecondNode);
|
|
bool ElementsSameStyle(nsIDOMNode *aFirstNode, nsIDOMNode *aSecondNode);
|
|
|
|
/** get the specified inline styles (style attribute) for an element
|
|
*
|
|
* @param aElement [IN] the element node
|
|
* @param aCssDecl [OUT] the CSS declaration corresponding to the style attr
|
|
* @param aLength [OUT] the number of declarations in aCssDecl
|
|
*/
|
|
nsresult GetInlineStyles(mozilla::dom::Element* aElement,
|
|
nsIDOMCSSStyleDeclaration** aCssDecl,
|
|
uint32_t* aLength);
|
|
nsresult GetInlineStyles(nsIDOMElement* aElement,
|
|
nsIDOMCSSStyleDeclaration** aCssDecl,
|
|
uint32_t* aLength);
|
|
private:
|
|
nsresult GetInlineStyles(nsISupports* aElement,
|
|
nsIDOMCSSStyleDeclaration** aCssDecl,
|
|
uint32_t* aLength);
|
|
|
|
public:
|
|
/** returns aNode itself if it is an element node, or the first ancestors being an element
|
|
* node if aNode is not one itself
|
|
*
|
|
* @param aNode [IN] a node
|
|
* @param aElement [OUT] the deepest element node containing aNode (possibly aNode itself)
|
|
*/
|
|
mozilla::dom::Element* GetElementContainerOrSelf(nsINode* aNode);
|
|
already_AddRefed<nsIDOMElement> GetElementContainerOrSelf(nsIDOMNode* aNode);
|
|
|
|
/**
|
|
* Gets the computed style for a given element. Can return null.
|
|
*/
|
|
already_AddRefed<nsComputedDOMStyle>
|
|
GetComputedStyle(nsIDOMElement* aElement);
|
|
already_AddRefed<nsComputedDOMStyle>
|
|
GetComputedStyle(mozilla::dom::Element* aElement);
|
|
|
|
|
|
private:
|
|
|
|
/** retrieves the css property atom from an enum
|
|
*
|
|
* @param aProperty [IN] the enum value for the property
|
|
* @param aAtom [OUT] the corresponding atom
|
|
*/
|
|
void GetCSSPropertyAtom(nsCSSEditableProperty aProperty, nsIAtom ** aAtom);
|
|
|
|
/** retrieves the CSS declarations equivalent to a HTML style value for
|
|
* a given equivalence table
|
|
*
|
|
* @param aPropertyArray [OUT] the array of css properties
|
|
* @param aValueArray [OUT] the array of values for the css properties above
|
|
* @param aEquivTable [IN] the equivalence table
|
|
* @param aValue [IN] the HTML style value
|
|
* @param aGetOrRemoveRequest [IN] a boolean value being true if the call to the current method
|
|
* is made for GetCSSEquivalentToHTMLInlineStyleSet or
|
|
* RemoveCSSEquivalentToHTMLInlineStyleSet
|
|
*/
|
|
|
|
void BuildCSSDeclarations(nsTArray<nsIAtom*> & aPropertyArray,
|
|
nsTArray<nsString> & cssValueArray,
|
|
const CSSEquivTable * aEquivTable,
|
|
const nsAString * aValue,
|
|
bool aGetOrRemoveRequest);
|
|
|
|
/** retrieves the CSS declarations equivalent to the given HTML property/attribute/value
|
|
* for a given node
|
|
*
|
|
* @param aNode [IN] the DOM node
|
|
* @param aHTMLProperty [IN] an atom containing an HTML property
|
|
* @param aAttribute [IN] a pointer to an attribute name or nullptr if irrelevant
|
|
* @param aValue [IN] the attribute value
|
|
* @param aPropertyArray [OUT] the array of css properties
|
|
* @param aValueArray [OUT] the array of values for the css properties above
|
|
* @param aGetOrRemoveRequest [IN] a boolean value being true if the call to the current method
|
|
* is made for GetCSSEquivalentToHTMLInlineStyleSet or
|
|
* RemoveCSSEquivalentToHTMLInlineStyleSet
|
|
*/
|
|
void GenerateCSSDeclarationsFromHTMLStyle(mozilla::dom::Element* aNode,
|
|
nsIAtom* aHTMLProperty,
|
|
const nsAString* aAttribute,
|
|
const nsAString* aValue,
|
|
nsTArray<nsIAtom*>& aPropertyArray,
|
|
nsTArray<nsString>& aValueArray,
|
|
bool aGetOrRemoveRequest);
|
|
|
|
/** creates a Transaction for setting or removing a css property
|
|
*
|
|
* @param aElement [IN] a DOM element
|
|
* @param aProperty [IN] a CSS property
|
|
* @param aValue [IN] the value to remove for this CSS property or the empty string if irrelevant
|
|
* @param aTxn [OUT] the created transaction
|
|
* @param aRemoveProperty [IN] true if we create a "remove" transaction, false for a "set"
|
|
*/
|
|
nsresult CreateCSSPropertyTxn(nsIDOMElement * aElement,
|
|
nsIAtom * aProperty,
|
|
const nsAString & aValue,
|
|
ChangeCSSInlineStyleTxn ** aTxn,
|
|
bool aRemoveProperty);
|
|
|
|
/** back-end for GetSpecifiedProperty and GetComputedProperty
|
|
*
|
|
* @param aNode [IN] a DOM node
|
|
* @param aProperty [IN] a CSS property
|
|
* @param aValue [OUT] the retrieved value for this property
|
|
* @param aStyleType [IN] eSpecified or eComputed
|
|
*/
|
|
nsresult GetCSSInlinePropertyBase(nsINode* aNode, nsIAtom* aProperty,
|
|
nsAString& aValue, StyleType aStyleType);
|
|
nsresult GetCSSInlinePropertyBase(nsIDOMNode* aNode, nsIAtom* aProperty,
|
|
nsAString& aValue, StyleType aStyleType);
|
|
|
|
|
|
private:
|
|
nsHTMLEditor *mHTMLEditor;
|
|
bool mIsCSSPrefChecked;
|
|
};
|
|
|
|
#define NS_EDITOR_INDENT_INCREMENT_IN 0.4134f
|
|
#define NS_EDITOR_INDENT_INCREMENT_CM 1.05f
|
|
#define NS_EDITOR_INDENT_INCREMENT_MM 10.5f
|
|
#define NS_EDITOR_INDENT_INCREMENT_PT 29.76f
|
|
#define NS_EDITOR_INDENT_INCREMENT_PC 2.48f
|
|
#define NS_EDITOR_INDENT_INCREMENT_EM 3
|
|
#define NS_EDITOR_INDENT_INCREMENT_EX 6
|
|
#define NS_EDITOR_INDENT_INCREMENT_PX 40
|
|
#define NS_EDITOR_INDENT_INCREMENT_PERCENT 4
|
|
|
|
#endif /* nsHTMLCSSUtils_h__ */
|