author | Wes Kocher <wkocher@mozilla.com> |
Tue, 24 Jun 2014 18:32:55 -0700 | |
changeset 204401 | 71f6b8a9b2e8cb698a495eb29d7611cb030073a9 |
parent 204400 | 26d6c067ee0de58aa64297a03804b9e6ce72154e |
child 204402 | 59b0072d64aa5bebe2906b1778727d8172ac0f84 |
push id | 6561 |
push user | asasaki@mozilla.com |
push date | Mon, 21 Jul 2014 21:23:20 +0000 |
treeherder | mozilla-aurora@428d4d3c8588 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
bugs | 1028559, 1028565 |
milestone | 33.0a1 |
backs out | fdd74c065e5d743bd4d1a3044b2e76727dfb60f0 5e9777d3805262d3179babc853832594c63a966b 3510bcdba3fc25f2bd35327fb234e62cffc609fb 62ad3254903e92e3814652dac400f00956b0a347 e7557f70acfebc3d0ea300ea1d78d63854d9c3cb 5b1b527abe473a64fa9dedf7b487d453eb2e078a |
--- a/content/html/content/src/moz.build +++ b/content/html/content/src/moz.build @@ -168,19 +168,19 @@ FINAL_LIBRARY = 'gklayout' LOCAL_INCLUDES += [ '/content/base/src', '/content/canvas/src', '/content/html/document/src', '/content/media/', '/content/xul/content/src', '/dom/base', '/dom/xbl', - '/editor/libeditor', + '/editor/libeditor/base', '/editor/libeditor/text', - '/editor/txmgr', + '/editor/txmgr/src', '/layout/forms', '/layout/generic', '/layout/style', '/layout/tables', '/layout/xul', '/netwerk/base/src', ]
--- a/editor/composer/moz.build +++ b/editor/composer/moz.build @@ -1,65 +1,8 @@ # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- # vim: set filetype=python: # 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/. +PARALLEL_DIRS += ['public', 'src'] TEST_DIRS += ['test'] - -XPIDL_SOURCES += [ - 'nsIEditingSession.idl', -] - -XPIDL_MODULE = 'composer' - -UNIFIED_SOURCES += [ - 'nsComposerCommands.cpp', - 'nsComposerCommandsUpdater.cpp', - 'nsComposerController.cpp', - 'nsComposerDocumentCommands.cpp', - 'nsComposerRegistration.cpp', - 'nsComposeTxtSrvFilter.cpp', - 'nsEditingSession.cpp', - 'nsEditorSpellCheck.cpp', -] - -FAIL_ON_WARNINGS = True - -FINAL_LIBRARY = 'xul' -RESOURCE_FILES += [ - 'res/EditorOverride.css', - 'res/grabber.gif', - 'res/table-add-column-after-active.gif', - 'res/table-add-column-after-hover.gif', - 'res/table-add-column-after.gif', - 'res/table-add-column-before-active.gif', - 'res/table-add-column-before-hover.gif', - 'res/table-add-column-before.gif', - 'res/table-add-row-after-active.gif', - 'res/table-add-row-after-hover.gif', - 'res/table-add-row-after.gif', - 'res/table-add-row-before-active.gif', - 'res/table-add-row-before-hover.gif', - 'res/table-add-row-before.gif', - 'res/table-remove-column-active.gif', - 'res/table-remove-column-hover.gif', - 'res/table-remove-column.gif', - 'res/table-remove-row-active.gif', - 'res/table-remove-row-hover.gif', - 'res/table-remove-row.gif', - 'res/text_caret.png', - 'res/text_caret@1.5x.png', - 'res/text_caret@2.25x.png', - 'res/text_caret@2x.png', - 'res/text_caret_tilt_left.png', - 'res/text_caret_tilt_left@1.5x.png', - 'res/text_caret_tilt_left@2.25x.png', - 'res/text_caret_tilt_left@2x.png', - 'res/text_caret_tilt_right.png', - 'res/text_caret_tilt_right@1.5x.png', - 'res/text_caret_tilt_right@2.25x.png', - 'res/text_caret_tilt_right@2x.png', - 'res/text_selection_handle.png', - 'res/text_selection_handle@1.5.png', - 'res/text_selection_handle@2.png', -]
new file mode 100644 --- /dev/null +++ b/editor/composer/public/moz.build @@ -0,0 +1,12 @@ +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# 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/. + +XPIDL_SOURCES += [ + 'nsIEditingSession.idl', +] + +XPIDL_MODULE = 'composer' +
rename from editor/composer/nsIEditingSession.idl rename to editor/composer/public/nsIEditingSession.idl
rename from editor/composer/crashtests/351236-1.html rename to editor/composer/src/crashtests/351236-1.html
rename from editor/composer/crashtests/407062-1.html rename to editor/composer/src/crashtests/407062-1.html
rename from editor/composer/crashtests/419563-1.xhtml rename to editor/composer/src/crashtests/419563-1.xhtml
rename from editor/composer/crashtests/428844-1-inner.xhtml rename to editor/composer/src/crashtests/428844-1-inner.xhtml
rename from editor/composer/crashtests/428844-1.html rename to editor/composer/src/crashtests/428844-1.html
rename from editor/composer/crashtests/461049-1.html rename to editor/composer/src/crashtests/461049-1.html
rename from editor/composer/crashtests/crashtests.list rename to editor/composer/src/crashtests/crashtests.list
rename from editor/composer/crashtests/removing-editable-xslt-inner.xhtml rename to editor/composer/src/crashtests/removing-editable-xslt-inner.xhtml
rename from editor/composer/crashtests/removing-editable-xslt.html rename to editor/composer/src/crashtests/removing-editable-xslt.html
new file mode 100644 --- /dev/null +++ b/editor/composer/src/moz.build @@ -0,0 +1,57 @@ +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# 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/. + +UNIFIED_SOURCES += [ + 'nsComposerCommands.cpp', + 'nsComposerCommandsUpdater.cpp', + 'nsComposerController.cpp', + 'nsComposerDocumentCommands.cpp', + 'nsComposerRegistration.cpp', + 'nsComposeTxtSrvFilter.cpp', + 'nsEditingSession.cpp', + 'nsEditorSpellCheck.cpp', +] + +FAIL_ON_WARNINGS = True + +FINAL_LIBRARY = 'xul' +RESOURCE_FILES += [ + 'res/EditorOverride.css', + 'res/grabber.gif', + 'res/table-add-column-after-active.gif', + 'res/table-add-column-after-hover.gif', + 'res/table-add-column-after.gif', + 'res/table-add-column-before-active.gif', + 'res/table-add-column-before-hover.gif', + 'res/table-add-column-before.gif', + 'res/table-add-row-after-active.gif', + 'res/table-add-row-after-hover.gif', + 'res/table-add-row-after.gif', + 'res/table-add-row-before-active.gif', + 'res/table-add-row-before-hover.gif', + 'res/table-add-row-before.gif', + 'res/table-remove-column-active.gif', + 'res/table-remove-column-hover.gif', + 'res/table-remove-column.gif', + 'res/table-remove-row-active.gif', + 'res/table-remove-row-hover.gif', + 'res/table-remove-row.gif', + 'res/text_caret.png', + 'res/text_caret@1.5x.png', + 'res/text_caret@2.25x.png', + 'res/text_caret@2x.png', + 'res/text_caret_tilt_left.png', + 'res/text_caret_tilt_left@1.5x.png', + 'res/text_caret_tilt_left@2.25x.png', + 'res/text_caret_tilt_left@2x.png', + 'res/text_caret_tilt_right.png', + 'res/text_caret_tilt_right@1.5x.png', + 'res/text_caret_tilt_right@2.25x.png', + 'res/text_caret_tilt_right@2x.png', + 'res/text_selection_handle.png', + 'res/text_selection_handle@1.5.png', + 'res/text_selection_handle@2.png', +]
rename from editor/composer/nsComposeTxtSrvFilter.cpp rename to editor/composer/src/nsComposeTxtSrvFilter.cpp
rename from editor/composer/nsComposeTxtSrvFilter.h rename to editor/composer/src/nsComposeTxtSrvFilter.h
rename from editor/composer/nsComposerCommands.cpp rename to editor/composer/src/nsComposerCommands.cpp
rename from editor/composer/nsComposerCommandsUpdater.cpp rename to editor/composer/src/nsComposerCommandsUpdater.cpp
rename from editor/composer/nsComposerCommandsUpdater.h rename to editor/composer/src/nsComposerCommandsUpdater.h
rename from editor/composer/nsComposerController.cpp rename to editor/composer/src/nsComposerController.cpp
rename from editor/composer/nsComposerController.h rename to editor/composer/src/nsComposerController.h
rename from editor/composer/nsComposerDocumentCommands.cpp rename to editor/composer/src/nsComposerDocumentCommands.cpp
rename from editor/composer/nsComposerRegistration.cpp rename to editor/composer/src/nsComposerRegistration.cpp
rename from editor/composer/nsEditorSpellCheck.cpp rename to editor/composer/src/nsEditorSpellCheck.cpp
rename from editor/composer/res/EditorOverride.css rename to editor/composer/src/res/EditorOverride.css
rename from editor/composer/res/table-add-column-after-active.gif rename to editor/composer/src/res/table-add-column-after-active.gif
rename from editor/composer/res/table-add-column-after-hover.gif rename to editor/composer/src/res/table-add-column-after-hover.gif
rename from editor/composer/res/table-add-column-after.gif rename to editor/composer/src/res/table-add-column-after.gif
rename from editor/composer/res/table-add-column-before-active.gif rename to editor/composer/src/res/table-add-column-before-active.gif
rename from editor/composer/res/table-add-column-before-hover.gif rename to editor/composer/src/res/table-add-column-before-hover.gif
rename from editor/composer/res/table-add-column-before.gif rename to editor/composer/src/res/table-add-column-before.gif
rename from editor/composer/res/table-add-row-after-active.gif rename to editor/composer/src/res/table-add-row-after-active.gif
rename from editor/composer/res/table-add-row-after-hover.gif rename to editor/composer/src/res/table-add-row-after-hover.gif
rename from editor/composer/res/table-add-row-after.gif rename to editor/composer/src/res/table-add-row-after.gif
rename from editor/composer/res/table-add-row-before-active.gif rename to editor/composer/src/res/table-add-row-before-active.gif
rename from editor/composer/res/table-add-row-before-hover.gif rename to editor/composer/src/res/table-add-row-before-hover.gif
rename from editor/composer/res/table-add-row-before.gif rename to editor/composer/src/res/table-add-row-before.gif
rename from editor/composer/res/table-remove-column-active.gif rename to editor/composer/src/res/table-remove-column-active.gif
rename from editor/composer/res/table-remove-column-hover.gif rename to editor/composer/src/res/table-remove-column-hover.gif
rename from editor/composer/res/table-remove-column.gif rename to editor/composer/src/res/table-remove-column.gif
rename from editor/composer/res/table-remove-row-active.gif rename to editor/composer/src/res/table-remove-row-active.gif
rename from editor/composer/res/table-remove-row-hover.gif rename to editor/composer/src/res/table-remove-row-hover.gif
rename from editor/composer/res/table-remove-row.gif rename to editor/composer/src/res/table-remove-row.gif
rename from editor/composer/res/text_caret@1.5x.png rename to editor/composer/src/res/text_caret@1.5x.png
rename from editor/composer/res/text_caret@2.25x.png rename to editor/composer/src/res/text_caret@2.25x.png
rename from editor/composer/res/text_caret@2x.png rename to editor/composer/src/res/text_caret@2x.png
rename from editor/composer/res/text_caret_tilt_left.png rename to editor/composer/src/res/text_caret_tilt_left.png
rename from editor/composer/res/text_caret_tilt_left@1.5x.png rename to editor/composer/src/res/text_caret_tilt_left@1.5x.png
rename from editor/composer/res/text_caret_tilt_left@2.25x.png rename to editor/composer/src/res/text_caret_tilt_left@2.25x.png
rename from editor/composer/res/text_caret_tilt_left@2x.png rename to editor/composer/src/res/text_caret_tilt_left@2x.png
rename from editor/composer/res/text_caret_tilt_right.png rename to editor/composer/src/res/text_caret_tilt_right.png
rename from editor/composer/res/text_caret_tilt_right@1.5x.png rename to editor/composer/src/res/text_caret_tilt_right@1.5x.png
rename from editor/composer/res/text_caret_tilt_right@2.25x.png rename to editor/composer/src/res/text_caret_tilt_right@2.25x.png
rename from editor/composer/res/text_caret_tilt_right@2x.png rename to editor/composer/src/res/text_caret_tilt_right@2x.png
rename from editor/composer/res/text_selection_handle.png rename to editor/composer/src/res/text_selection_handle.png
rename from editor/composer/res/text_selection_handle@1.5.png rename to editor/composer/src/res/text_selection_handle@1.5.png
rename from editor/composer/res/text_selection_handle@2.png rename to editor/composer/src/res/text_selection_handle@2.png
--- a/editor/crashtests.list +++ b/editor/crashtests.list @@ -1,9 +1,9 @@ # 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/. -include libeditor/crashtests/crashtests.list include libeditor/html/crashtests/crashtests.list +include libeditor/base/crashtests/crashtests.list include libeditor/text/crashtests/crashtests.list -include composer/crashtests/crashtests.list +include composer/src/crashtests/crashtests.list include txmgr/tests/crashtests/crashtests.list
new file mode 100644 --- /dev/null +++ b/editor/idl/moz.build @@ -0,0 +1,29 @@ +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# 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/. + +XPIDL_SOURCES += [ + 'nsIContentFilter.idl', + 'nsIDocumentStateListener.idl', + 'nsIEditActionListener.idl', + 'nsIEditor.idl', + 'nsIEditorIMESupport.idl', + 'nsIEditorMailSupport.idl', + 'nsIEditorObserver.idl', + 'nsIEditorSpellCheck.idl', + 'nsIEditorStyleSheets.idl', + 'nsIHTMLAbsPosEditor.idl', + 'nsIHTMLEditor.idl', + 'nsIHTMLInlineTableEditor.idl', + 'nsIHTMLObjectResizeListener.idl', + 'nsIHTMLObjectResizer.idl', + 'nsIPlaintextEditor.idl', + 'nsITableEditor.idl', + 'nsIURIRefObject.idl', + 'nsPIEditorTransaction.idl', +] + +XPIDL_MODULE = 'editor' +
rename from editor/nsIHTMLObjectResizeListener.idl rename to editor/idl/nsIHTMLObjectResizeListener.idl
rename from editor/libeditor/ChangeAttributeTxn.cpp rename to editor/libeditor/base/ChangeAttributeTxn.cpp
rename from editor/libeditor/ChangeAttributeTxn.h rename to editor/libeditor/base/ChangeAttributeTxn.h
rename from editor/libeditor/ChangeCSSInlineStyleTxn.cpp rename to editor/libeditor/base/ChangeCSSInlineStyleTxn.cpp
rename from editor/libeditor/ChangeCSSInlineStyleTxn.h rename to editor/libeditor/base/ChangeCSSInlineStyleTxn.h
rename from editor/libeditor/CreateElementTxn.cpp rename to editor/libeditor/base/CreateElementTxn.cpp
rename from editor/libeditor/EditActionListener.h rename to editor/libeditor/base/EditActionListener.h
rename from editor/libeditor/EditAggregateTxn.cpp rename to editor/libeditor/base/EditAggregateTxn.cpp
rename from editor/libeditor/InsertElementTxn.cpp rename to editor/libeditor/base/InsertElementTxn.cpp
rename from editor/libeditor/SplitElementTxn.cpp rename to editor/libeditor/base/SplitElementTxn.cpp
rename from editor/libeditor/crashtests/336104.html rename to editor/libeditor/base/crashtests/336104.html
rename from editor/libeditor/crashtests/382527-1.html rename to editor/libeditor/base/crashtests/382527-1.html
rename from editor/libeditor/crashtests/402172-1.html rename to editor/libeditor/base/crashtests/402172-1.html
rename from editor/libeditor/crashtests/407079-1.html rename to editor/libeditor/base/crashtests/407079-1.html
rename from editor/libeditor/crashtests/407256-1.html rename to editor/libeditor/base/crashtests/407256-1.html
rename from editor/libeditor/crashtests/430624-1.html rename to editor/libeditor/base/crashtests/430624-1.html
rename from editor/libeditor/crashtests/459613-iframe.html rename to editor/libeditor/base/crashtests/459613-iframe.html
rename from editor/libeditor/crashtests/459613.html rename to editor/libeditor/base/crashtests/459613.html
rename from editor/libeditor/crashtests/475132-1.xhtml rename to editor/libeditor/base/crashtests/475132-1.xhtml
rename from editor/libeditor/crashtests/633709.xhtml rename to editor/libeditor/base/crashtests/633709.xhtml
rename from editor/libeditor/crashtests/636074-1.html rename to editor/libeditor/base/crashtests/636074-1.html
rename from editor/libeditor/crashtests/713427-1.html rename to editor/libeditor/base/crashtests/713427-1.html
rename from editor/libeditor/crashtests/713427-2.xhtml rename to editor/libeditor/base/crashtests/713427-2.xhtml
rename from editor/libeditor/crashtests/762183.html rename to editor/libeditor/base/crashtests/762183.html
rename from editor/libeditor/crashtests/766360.html rename to editor/libeditor/base/crashtests/766360.html
rename from editor/libeditor/crashtests/766413.html rename to editor/libeditor/base/crashtests/766413.html
rename from editor/libeditor/crashtests/766845.xhtml rename to editor/libeditor/base/crashtests/766845.xhtml
rename from editor/libeditor/crashtests/768765.html rename to editor/libeditor/base/crashtests/768765.html
rename from editor/libeditor/crashtests/771749.html rename to editor/libeditor/base/crashtests/771749.html
rename from editor/libeditor/crashtests/772282.html rename to editor/libeditor/base/crashtests/772282.html
rename from editor/libeditor/crashtests/776323.html rename to editor/libeditor/base/crashtests/776323.html
rename from editor/libeditor/crashtests/crashtests.list rename to editor/libeditor/base/crashtests/crashtests.list
new file mode 100644 --- /dev/null +++ b/editor/libeditor/base/moz.build @@ -0,0 +1,44 @@ +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# 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/. + +TEST_DIRS += ['tests'] + +UNIFIED_SOURCES += [ + 'ChangeAttributeTxn.cpp', + 'ChangeCSSInlineStyleTxn.cpp', + 'CreateElementTxn.cpp', + 'DeleteNodeTxn.cpp', + 'DeleteRangeTxn.cpp', + 'DeleteTextTxn.cpp', + 'EditAggregateTxn.cpp', + 'EditTxn.cpp', + 'IMETextTxn.cpp', + 'InsertElementTxn.cpp', + 'InsertTextTxn.cpp', + 'JoinElementTxn.cpp', + 'nsEditor.cpp', + 'nsEditorCommands.cpp', + 'nsEditorController.cpp', + 'nsEditorEventListener.cpp', + 'nsEditorUtils.cpp', + 'nsSelectionState.cpp', + 'nsStyleSheetTxns.cpp', + 'PlaceholderTxn.cpp', + 'SetDocTitleTxn.cpp', + 'SplitElementTxn.cpp', +] + +FAIL_ON_WARNINGS = True + +LOCAL_INCLUDES += [ + '../text', + '/content/base/src', + '/editor/txmgr/src', + '/extensions/spellcheck/src', + '/layout/style', +] + +FINAL_LIBRARY = 'gklayout'
rename from editor/libeditor/nsEditPropertyAtomList.h rename to editor/libeditor/base/nsEditPropertyAtomList.h
rename from editor/libeditor/nsEditorCommands.cpp rename to editor/libeditor/base/nsEditorCommands.cpp
rename from editor/libeditor/nsEditorController.cpp rename to editor/libeditor/base/nsEditorController.cpp
rename from editor/libeditor/nsEditorController.h rename to editor/libeditor/base/nsEditorController.h
rename from editor/libeditor/nsEditorEventListener.cpp rename to editor/libeditor/base/nsEditorEventListener.cpp
rename from editor/libeditor/nsEditorEventListener.h rename to editor/libeditor/base/nsEditorEventListener.h
rename from editor/libeditor/nsIAbsorbingTransaction.h rename to editor/libeditor/base/nsIAbsorbingTransaction.h
rename from editor/libeditor/nsSelectionState.cpp rename to editor/libeditor/base/nsSelectionState.cpp
rename from editor/libeditor/nsStyleSheetTxns.cpp rename to editor/libeditor/base/nsStyleSheetTxns.cpp
rename from editor/libeditor/tests/file_bug586662.html rename to editor/libeditor/base/tests/file_bug586662.html
rename from editor/libeditor/tests/mochitest.ini rename to editor/libeditor/base/tests/mochitest.ini
rename from editor/libeditor/tests/test_bug408231.html rename to editor/libeditor/base/tests/test_bug408231.html
rename from editor/libeditor/tests/test_bug46555.html rename to editor/libeditor/base/tests/test_bug46555.html
rename from editor/libeditor/tests/test_bug502673.html rename to editor/libeditor/base/tests/test_bug502673.html
rename from editor/libeditor/tests/test_bug514156.html rename to editor/libeditor/base/tests/test_bug514156.html
rename from editor/libeditor/tests/test_bug567213.html rename to editor/libeditor/base/tests/test_bug567213.html
rename from editor/libeditor/tests/test_bug586662.html rename to editor/libeditor/base/tests/test_bug586662.html
rename from editor/libeditor/tests/test_bug599983.html rename to editor/libeditor/base/tests/test_bug599983.html
rename from editor/libeditor/tests/test_bug599983.xul rename to editor/libeditor/base/tests/test_bug599983.xul
rename from editor/libeditor/tests/test_bug646194.xul rename to editor/libeditor/base/tests/test_bug646194.xul
rename from editor/libeditor/tests/test_bug742261.html rename to editor/libeditor/base/tests/test_bug742261.html
rename from editor/libeditor/tests/test_bug773262.html rename to editor/libeditor/base/tests/test_bug773262.html
rename from editor/libeditor/tests/test_bug795785.html rename to editor/libeditor/base/tests/test_bug795785.html
rename from editor/libeditor/tests/test_dragdrop.html rename to editor/libeditor/base/tests/test_dragdrop.html
rename from editor/libeditor/tests/test_selection_move_commands.xul rename to editor/libeditor/base/tests/test_selection_move_commands.xul
--- a/editor/libeditor/html/moz.build +++ b/editor/libeditor/html/moz.build @@ -24,19 +24,19 @@ UNIFIED_SOURCES += [ 'nsWSRunObject.cpp', 'TextEditorTest.cpp', 'TypeInState.cpp', ] FAIL_ON_WARNINGS = True LOCAL_INCLUDES += [ + '../base', + '../text', '/content/base/src', - '/editor/libeditor', - '/editor/libeditor/text', - '/editor/txmgr', + '/editor/txmgr/src', '/layout/generic', '/layout/style', '/layout/tables', '/layout/xul', ] FINAL_LIBRARY = 'gklayout'
--- a/editor/libeditor/moz.build +++ b/editor/libeditor/moz.build @@ -1,45 +1,7 @@ # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- # vim: set filetype=python: # 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/. -PARALLEL_DIRS += ['text', 'html'] -TEST_DIRS += ['tests'] - -UNIFIED_SOURCES += [ - 'ChangeAttributeTxn.cpp', - 'ChangeCSSInlineStyleTxn.cpp', - 'CreateElementTxn.cpp', - 'DeleteNodeTxn.cpp', - 'DeleteRangeTxn.cpp', - 'DeleteTextTxn.cpp', - 'EditAggregateTxn.cpp', - 'EditTxn.cpp', - 'IMETextTxn.cpp', - 'InsertElementTxn.cpp', - 'InsertTextTxn.cpp', - 'JoinElementTxn.cpp', - 'nsEditor.cpp', - 'nsEditorCommands.cpp', - 'nsEditorController.cpp', - 'nsEditorEventListener.cpp', - 'nsEditorUtils.cpp', - 'nsSelectionState.cpp', - 'nsStyleSheetTxns.cpp', - 'PlaceholderTxn.cpp', - 'SetDocTitleTxn.cpp', - 'SplitElementTxn.cpp', -] - -FAIL_ON_WARNINGS = True - -LOCAL_INCLUDES += [ - '/content/base/src', - '/editor/libeditor/text', - '/editor/txmgr', - '/extensions/spellcheck/src', - '/layout/style', -] - -FINAL_LIBRARY = 'gklayout' +PARALLEL_DIRS += ['base', 'text', 'html']
--- a/editor/libeditor/text/moz.build +++ b/editor/libeditor/text/moz.build @@ -11,18 +11,18 @@ UNIFIED_SOURCES += [ 'nsTextEditRules.cpp', 'nsTextEditRulesBidi.cpp', 'nsTextEditUtils.cpp', ] FAIL_ON_WARNINGS = True LOCAL_INCLUDES += [ + '../base', '/content/base/src', - '/editor/libeditor', - '/editor/txmgr', + '/editor/txmgr/src', ] FINAL_LIBRARY = 'gklayout' MOCHITEST_MANIFESTS += ['tests/mochitest.ini'] MOCHITEST_CHROME_MANIFESTS += ['tests/chrome.ini']
--- a/editor/moz.build +++ b/editor/moz.build @@ -1,43 +1,18 @@ # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- # vim: set filetype=python: # 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/. PARALLEL_DIRS += [ + 'public', + 'idl', 'txtsvc', 'libeditor', 'txmgr', 'composer', ] -XPIDL_SOURCES += [ - 'nsIContentFilter.idl', - 'nsIDocumentStateListener.idl', - 'nsIEditActionListener.idl', - 'nsIEditor.idl', - 'nsIEditorIMESupport.idl', - 'nsIEditorMailSupport.idl', - 'nsIEditorObserver.idl', - 'nsIEditorSpellCheck.idl', - 'nsIEditorStyleSheets.idl', - 'nsIHTMLAbsPosEditor.idl', - 'nsIHTMLEditor.idl', - 'nsIHTMLInlineTableEditor.idl', - 'nsIHTMLObjectResizeListener.idl', - 'nsIHTMLObjectResizer.idl', - 'nsIPlaintextEditor.idl', - 'nsITableEditor.idl', - 'nsIURIRefObject.idl', - 'nsPIEditorTransaction.idl', -] - -XPIDL_MODULE = 'editor' - -EXPORTS += [ - 'nsEditorCID.h', -] - EXTRA_JS_MODULES += [ 'AsyncSpellCheckTestHelper.jsm', ]
new file mode 100644 --- /dev/null +++ b/editor/public/moz.build @@ -0,0 +1,10 @@ +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# 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/. + +EXPORTS += [ + 'nsEditorCID.h', +] +
new file mode 100644 --- /dev/null +++ b/editor/txmgr/idl/moz.build @@ -0,0 +1,15 @@ +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# 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/. + +XPIDL_SOURCES += [ + 'nsITransaction.idl', + 'nsITransactionList.idl', + 'nsITransactionListener.idl', + 'nsITransactionManager.idl', +] + +XPIDL_MODULE = 'txmgr' +
rename from editor/txmgr/nsITransactionListener.idl rename to editor/txmgr/idl/nsITransactionListener.idl
rename from editor/txmgr/nsITransactionManager.idl rename to editor/txmgr/idl/nsITransactionManager.idl
--- a/editor/txmgr/moz.build +++ b/editor/txmgr/moz.build @@ -1,32 +1,9 @@ # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- # vim: set filetype=python: # 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/. +PARALLEL_DIRS += ['public', 'src', 'idl'] TEST_TOOL_DIRS += ['tests'] -XPIDL_SOURCES += [ - 'nsITransaction.idl', - 'nsITransactionList.idl', - 'nsITransactionListener.idl', - 'nsITransactionManager.idl', -] - -XPIDL_MODULE = 'txmgr' - -EXPORTS += [ - 'nsTransactionManagerCID.h', -] - -UNIFIED_SOURCES += [ - 'nsTransactionItem.cpp', - 'nsTransactionList.cpp', - 'nsTransactionManager.cpp', - 'nsTransactionManagerFactory.cpp', - 'nsTransactionStack.cpp', -] - -FAIL_ON_WARNINGS = True - -FINAL_LIBRARY = 'xul'
new file mode 100644 --- /dev/null +++ b/editor/txmgr/public/moz.build @@ -0,0 +1,10 @@ +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# 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/. + +EXPORTS += [ + 'nsTransactionManagerCID.h', +] +
rename from editor/txmgr/nsTransactionManagerCID.h rename to editor/txmgr/public/nsTransactionManagerCID.h
new file mode 100644 --- /dev/null +++ b/editor/txmgr/src/moz.build @@ -0,0 +1,17 @@ +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# 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/. + +UNIFIED_SOURCES += [ + 'nsTransactionItem.cpp', + 'nsTransactionList.cpp', + 'nsTransactionManager.cpp', + 'nsTransactionManagerFactory.cpp', + 'nsTransactionStack.cpp', +] + +FAIL_ON_WARNINGS = True + +FINAL_LIBRARY = 'xul'
rename from editor/txmgr/nsTransactionManager.cpp rename to editor/txmgr/src/nsTransactionManager.cpp
rename from editor/txmgr/nsTransactionManagerFactory.cpp rename to editor/txmgr/src/nsTransactionManagerFactory.cpp
--- a/editor/txtsvc/moz.build +++ b/editor/txtsvc/moz.build @@ -1,28 +1,8 @@ # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- # vim: set filetype=python: # 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/. -XPIDL_SOURCES += [ - 'nsIInlineSpellChecker.idl', - 'nsITextServicesFilter.idl', -] - -XPIDL_MODULE = 'txtsvc' +PARALLEL_DIRS += ['public', 'src'] -EXPORTS += [ - 'nsISpellChecker.h', - 'nsITextService.h', - 'nsITextServicesDocument.h', - 'nsTextServicesCID.h', -] - -UNIFIED_SOURCES += [ - 'nsFilteredContentIterator.cpp', - 'nsTextServicesDocument.cpp', -] - -FAIL_ON_WARNINGS = True - -FINAL_LIBRARY = 'gklayout'
new file mode 100644 --- /dev/null +++ b/editor/txtsvc/public/moz.build @@ -0,0 +1,20 @@ +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# 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/. + +XPIDL_SOURCES += [ + 'nsIInlineSpellChecker.idl', + 'nsITextServicesFilter.idl', +] + +XPIDL_MODULE = 'txtsvc' + +EXPORTS += [ + 'nsISpellChecker.h', + 'nsITextService.h', + 'nsITextServicesDocument.h', + 'nsTextServicesCID.h', +] +
rename from editor/txtsvc/nsIInlineSpellChecker.idl rename to editor/txtsvc/public/nsIInlineSpellChecker.idl
rename from editor/txtsvc/nsITextServicesDocument.h rename to editor/txtsvc/public/nsITextServicesDocument.h
rename from editor/txtsvc/nsITextServicesFilter.idl rename to editor/txtsvc/public/nsITextServicesFilter.idl
new file mode 100644 --- /dev/null +++ b/editor/txtsvc/src/moz.build @@ -0,0 +1,14 @@ +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# 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/. + +UNIFIED_SOURCES += [ + 'nsFilteredContentIterator.cpp', + 'nsTextServicesDocument.cpp', +] + +FAIL_ON_WARNINGS = True + +FINAL_LIBRARY = 'gklayout'
rename from editor/txtsvc/nsFilteredContentIterator.cpp rename to editor/txtsvc/src/nsFilteredContentIterator.cpp
rename from editor/txtsvc/nsFilteredContentIterator.h rename to editor/txtsvc/src/nsFilteredContentIterator.h
rename from editor/txtsvc/nsTextServicesDocument.cpp rename to editor/txtsvc/src/nsTextServicesDocument.cpp
rename from editor/txtsvc/nsTextServicesDocument.h rename to editor/txtsvc/src/nsTextServicesDocument.h
rename from editor/txtsvc/nsTextServicesFactory.cpp rename to editor/txtsvc/src/nsTextServicesFactory.cpp
--- a/extensions/spellcheck/hunspell/src/moz.build +++ b/extensions/spellcheck/hunspell/src/moz.build @@ -29,14 +29,14 @@ if not CONFIG['MOZ_NATIVE_HUNSPELL']: FINAL_LIBRARY = 'spellchecker' LOCAL_INCLUDES += [ '/extensions/spellcheck/src', ] LOCAL_INCLUDES += [ - '/editor/libeditor', + '/editor/libeditor/base', ] # Suppress warnings in third-party code. if CONFIG['CLANG_CXX']: CXXFLAGS += ['-Wno-unused-private-field']
--- a/extensions/spellcheck/src/moz.build +++ b/extensions/spellcheck/src/moz.build @@ -17,10 +17,10 @@ UNIFIED_SOURCES += [ LIBRARY_NAME = 'spellchecker' FINAL_LIBRARY = 'xul' LOCAL_INCLUDES += [ '../hunspell/src', '/content/base/src', - '/editor/libeditor', + '/editor/libeditor/base', ]
--- a/layout/build/moz.build +++ b/layout/build/moz.build @@ -61,22 +61,22 @@ LOCAL_INCLUDES += [ '/dom/src/offline', '/dom/src/storage', '/dom/telephony', '/dom/xbl', '/dom/xslt/base', '/dom/xslt/xml', '/dom/xslt/xpath', '/dom/xslt/xslt', - '/editor/composer', - '/editor/libeditor', + '/editor/composer/src', + '/editor/libeditor/base', '/editor/libeditor/html', '/editor/libeditor/text', - '/editor/txmgr', - '/editor/txtsvc', + '/editor/txmgr/src', + '/editor/txtsvc/src', '/extensions/cookie', '/js/xpconnect/loader', '/js/xpconnect/src', '/netwerk/base/src', '/netwerk/cookie', '/view/src', ]
--- a/layout/forms/moz.build +++ b/layout/forms/moz.build @@ -40,19 +40,19 @@ FAIL_ON_WARNINGS = True MSVC_ENABLE_PGO = True FINAL_LIBRARY = 'gklayout' LOCAL_INCLUDES += [ '../../content/base/src', '../../content/html/content/src', - '../../editor/libeditor', + '../../editor/libeditor/base', '../../editor/libeditor/text', - '../../editor/txmgr', + '../../editor/txmgr/src', '../base', '../generic', '../xul', ] if CONFIG['ENABLE_INTL_API']: # nsNumberControlFrame.cpp requires ICUUtils.h which in turn requires # i18n/unum.h
--- a/toolkit/content/license.html +++ b/toolkit/content/license.html @@ -1936,17 +1936,17 @@ WITH THE USE OR PERFORMANCE OF THIS SOFT <hr> <h1><a id="chromium"></a>Chromium License</h1> <p>This license applies to parts of the code in <span class="path">security/sandbox/</span>, - <span class="path">editor/libeditor/nsEditorEventListener.cpp</span>, + <span class="path">editor/libeditor/base/nsEditorEventListener.cpp</span>, <span class="path">widget/cocoa/GfxInfo.mm</span> and also some files in the directories <span class="path">ipc/chromium/</span>, <span class="path">dom/plugins/</span>, <span class="path">tools/profiler/sps/</span>, <span class="path">gfx/ots/</span>, <span class="path">gfx/ycbcr</span> and <span class="path">content/media/webspeech/recognition/</span>.
--- a/xpcom/string/moz.build +++ b/xpcom/string/moz.build @@ -1,63 +1,8 @@ # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- # vim: set filetype=python: # 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/. -EXPORTS += [ - 'nsAlgorithm.h', - 'nsAString.h', - 'nsCharTraits.h', - 'nsDependentString.h', - 'nsDependentSubstring.h', - 'nsEmbedString.h', - 'nsLiteralString.h', - 'nsPrintfCString.h', - 'nsPromiseFlatString.h', - 'nsReadableUtils.h', - 'nsString.h', - 'nsStringBuffer.h', - 'nsStringFwd.h', - 'nsStringIterator.h', - 'nsSubstring.h', - 'nsSubstringTuple.h', - 'nsTDependentString.h', - 'nsTDependentSubstring.h', - 'nsTLiteralString.h', - 'nsTPromiseFlatString.h', - 'nsTString.h', - 'nsTSubstring.h', - 'nsTSubstringTuple.h', - 'nsUTF8Utils.h', - 'nsXPCOMStrings.h', - 'nsXPIDLString.h', - 'string-template-def-char.h', - 'string-template-def-unichar.h', - 'string-template-undef.h', -] +DIRS += ['public', 'src'] -UNIFIED_SOURCES += [ - 'nsDependentString.cpp', - 'nsDependentSubstring.cpp', - 'nsPromiseFlatString.cpp', - 'nsReadableUtils.cpp', - 'nsString.cpp', - 'nsStringComparator.cpp', - 'nsStringObsolete.cpp', - 'nsSubstring.cpp', - 'nsSubstringTuple.cpp', -] - -# Are we targeting x86 or x86-64? If so, compile the SSE2 functions for -# nsUTF8Utils.cpp. -if CONFIG['INTEL_ARCHITECTURE']: - SOURCES += ['nsUTF8UtilsSSE2.cpp'] - SOURCES['nsUTF8UtilsSSE2.cpp'].flags += CONFIG['SSE2_FLAGS'] - -LOCAL_INCLUDES += [ - '/mfbt/double-conversion', -] - -MSVC_ENABLE_PGO = True - -FINAL_LIBRARY = 'xpcom_core'
new file mode 100644 --- /dev/null +++ b/xpcom/string/public/moz.build @@ -0,0 +1,37 @@ +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# 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/. + +EXPORTS += [ + 'nsAlgorithm.h', + 'nsAString.h', + 'nsCharTraits.h', + 'nsDependentString.h', + 'nsDependentSubstring.h', + 'nsEmbedString.h', + 'nsLiteralString.h', + 'nsPrintfCString.h', + 'nsPromiseFlatString.h', + 'nsReadableUtils.h', + 'nsString.h', + 'nsStringBuffer.h', + 'nsStringFwd.h', + 'nsStringIterator.h', + 'nsSubstring.h', + 'nsSubstringTuple.h', + 'nsTDependentString.h', + 'nsTDependentSubstring.h', + 'nsTLiteralString.h', + 'nsTPromiseFlatString.h', + 'nsTString.h', + 'nsTSubstring.h', + 'nsTSubstringTuple.h', + 'nsUTF8Utils.h', + 'nsXPCOMStrings.h', + 'nsXPIDLString.h', + 'string-template-def-char.h', + 'string-template-def-unichar.h', + 'string-template-undef.h', +]
rename from xpcom/string/nsDependentSubstring.h rename to xpcom/string/public/nsDependentSubstring.h
rename from xpcom/string/nsTDependentSubstring.h rename to xpcom/string/public/nsTDependentSubstring.h
rename from xpcom/string/nsTPromiseFlatString.h rename to xpcom/string/public/nsTPromiseFlatString.h
rename from xpcom/string/string-template-def-char.h rename to xpcom/string/public/string-template-def-char.h
rename from xpcom/string/string-template-def-unichar.h rename to xpcom/string/public/string-template-def-unichar.h
rename from xpcom/string/string-template-undef.h rename to xpcom/string/public/string-template-undef.h
new file mode 100644 --- /dev/null +++ b/xpcom/string/src/moz.build @@ -0,0 +1,31 @@ +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# 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/. + +UNIFIED_SOURCES += [ + 'nsDependentString.cpp', + 'nsDependentSubstring.cpp', + 'nsPromiseFlatString.cpp', + 'nsReadableUtils.cpp', + 'nsString.cpp', + 'nsStringComparator.cpp', + 'nsStringObsolete.cpp', + 'nsSubstring.cpp', + 'nsSubstringTuple.cpp', +] + +# Are we targeting x86 or x86-64? If so, compile the SSE2 functions for +# nsUTF8Utils.cpp. +if CONFIG['INTEL_ARCHITECTURE']: + SOURCES += ['nsUTF8UtilsSSE2.cpp'] + SOURCES['nsUTF8UtilsSSE2.cpp'].flags += CONFIG['SSE2_FLAGS'] + +LOCAL_INCLUDES += [ + '/mfbt/double-conversion', +] + +MSVC_ENABLE_PGO = True + +FINAL_LIBRARY = 'xpcom_core'
rename from xpcom/string/nsDependentSubstring.cpp rename to xpcom/string/src/nsDependentSubstring.cpp
rename from xpcom/string/nsTDependentSubstring.cpp rename to xpcom/string/src/nsTDependentSubstring.cpp