Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Перейти к файлу
Masayuki Nakano ac74e89b26 Bug 1566795 - part 6: Make `HTMLEditor::RemoveInlinePropertyInternal()` remove text node style which comes from block parent r=m_kato
Finally, `Document.execCommand()` still does not work fine if selection
starts from very start of block and/or end at very end of block because
`PromoteInlineRange()` extends selection range to contain the
containers, then, `SubtreeContentIterator` won't list up text nodes.

In this case, `RemoveInlinePropertyInternal()` expects that
`RemoveStyleInside()` removes text node style with creating
`<span>` elements.  However, `RemoveStyleInsilde()` only handles
`Element`s and it handles elements from most-descendants.
Therefore, it cannot distinguish whether text node style comes
from removing inline elements or parent block.

This patch makes `RemoveInlinePropertyInternal()` collect
descendant text nodes in the range after handling all nodes in
the range except descendant text nodes, then, check the
final style of descendant text nodes, finally, remove the style
if coming from parent block.

Differential Revision: https://phabricator.services.mozilla.com/D47865

--HG--
extra : moz-landing-system : lando
2019-10-09 08:04:34 +00:00
.cargo Bug 1582650 - Cranelift: update version to 0.44, rev to 182414f15c18538dfebbe040469ec8001e93ecc5. r=bbouvier. 2019-09-26 09:40:11 +00:00
.vscode Bug 1583388 - Recommend the Firefox debugger VSCode plugin. r=jlast 2019-09-26 22:01:19 +00:00
accessible Bug 1513325 - Remove textbox binding. r=emilio,dao 2019-10-09 09:27:28 +00:00
browser Bug 1430977 - Disable browser_625016.js on Win-debug. r=aryx 2019-10-09 10:34:22 +00:00
build Bug 1586358 - Replace existing instances of GENERATED_FILES with references to the GeneratedFile template r=firefox-build-system-reviewers,mshal 2019-10-07 21:15:19 +00:00
caps Bug 1583949 - Add a check for IsEvalAllowed to the worker callpath for eval() r=ckerschb,baku 2019-10-08 17:31:35 +00:00
chrome Bug 1585156 - Remove useless inclusions of nsIDOMWindow.h and nsIDOMWindowUtils.h r=smaug 2019-09-30 22:06:47 +00:00
config Bug 1586358 - Replace existing instances of GENERATED_FILES with references to the GeneratedFile template r=firefox-build-system-reviewers,mshal 2019-10-07 21:15:19 +00:00
devtools Bug 1513325 - Remove textbox binding. r=emilio,dao 2019-10-09 09:27:28 +00:00
docshell Bug 1510785 - Skip all XBL related tests when XBL is disabled. r=bzbarsky 2019-10-08 23:52:46 +00:00
dom Bug 1586220 - still treat shortcut/modifier keypresses as interaction for the purposes of GCs/timers and so on, just not for the website, r=smaug 2019-10-09 10:39:41 +00:00
editor Bug 1566795 - part 6: Make `HTMLEditor::RemoveInlinePropertyInternal()` remove text node style which comes from block parent r=m_kato 2019-10-09 08:04:34 +00:00
extensions Bug 1586878 - Replace <xul:textbox> with <html:input> in test_add_remove_dictionaries.xul;r=mossop 2019-10-08 17:13:43 +00:00
gfx Bug 1510785 - Skip all XBL related tests when XBL is disabled. r=bzbarsky 2019-10-08 23:52:46 +00:00
gradle/wrapper Bug 1522795 - Update android gradle plugin to 3.4.2. r=nalexander 2019-07-24 18:48:54 +00:00
hal Bug 1585156 - Remove useless inclusions of nsIDOMWindow.h and nsIDOMWindowUtils.h r=smaug 2019-09-30 22:06:47 +00:00
image Bug 1583647 - Make the GIF decoder use the accelerated RGB unpacking. r=tnikkel 2019-09-25 23:31:40 +00:00
intl Bug 1586358 - Replace existing instances of GENERATED_FILES with references to the GeneratedFile template r=firefox-build-system-reviewers,mshal 2019-10-07 21:15:19 +00:00
ipc Backed out 11 changesets (bug 1578624) for build bustages. CLOSED TREE 2019-10-09 11:50:37 +03:00
js Bug 1585921 - Remove GCPtrHasher which is invalid, and replace with HeapPtrHasher r=sfink 2019-10-09 10:30:02 +00:00
layout Bug 1513325 - Remove textbox binding. r=emilio,dao 2019-10-09 09:27:28 +00:00
media Bug 1580320 - Check return value of PeerConnectionImpl::GetFingerprint. r=drno 2019-10-08 17:52:27 +00:00
memory Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-10-06 18:29:55 +00:00
mfbt Bug 1584256 - Add IPDLParamTraits for Variant. r=nika,jwalden 2019-10-08 16:03:11 +00:00
mobile Bug 1563343 - Do not search for OS protocol handlers in GV; just let Gecko return ERROR_UNKNOWN_PROTOCOL. r=snorp,geckoview-reviewers,esawin 2019-10-08 19:05:09 +00:00
modules Bug 1456995 - enable Service Workers' parent-intercept mode on Nightly r=asuth,jgraham 2019-10-08 23:47:48 +00:00
mozglue Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-10-06 18:29:55 +00:00
netwerk Backed out 11 changesets (bug 1578624) for build bustages. CLOSED TREE 2019-10-09 11:50:37 +03:00
nsprpub Bug 1586867 - Upgrade Firefox 71 to use NSPR 4.23. r=jcj NSPR_4_23_BETA1 UPGRADE_NSPR_RELEASE 2019-10-07 22:07:04 +00:00
other-licenses Bug 1578489 - New Windows installer icon. r=agashlin 2019-09-23 22:00:43 +00:00
parser Bug 1510785 - Only build XBL related code when MOZ_XBL is defined. r=bzbarsky 2019-10-08 23:52:14 +00:00
python Bug 1510785 - Support disabling XBL related tests. r=gbrown 2019-10-08 23:52:33 +00:00
remote Bug 1547961 - [remote] Unskip browser_runtime_executionContext.js on Mac and Windows. r=remote-protocol-reviewers,ato 2019-10-04 09:35:48 +00:00
security Bug 1583067 - Use correct window opener for chrome windows in certManager.js. r=kmag 2019-10-08 21:37:57 +00:00
services Bug 1577690 - WebChannel support for optional Sync. r=vladikoff 2019-10-08 15:19:23 +00:00
servo Bug 1510785 - Add way to disable XBL in servo. r=emilio 2019-10-08 23:52:26 +00:00
startupcache Bug 1550108 - Reduce stack size on StartupCache threads r=froydnj 2019-10-04 20:45:41 +00:00
storage Bug 1560667 - Collection of fixes for things uncovered by improvements to the hazard analysis. r=bzbarsky 2019-10-02 03:20:33 +00:00
taskcluster Bug 1581829 - Expand desktop cold page load tests to full suite of sites r=perftest-reviewers,AlexandruIonescu 2019-10-08 10:53:30 +00:00
testing Bug 1566795 - part 6: Make `HTMLEditor::RemoveInlinePropertyInternal()` remove text node style which comes from block parent r=m_kato 2019-10-09 08:04:34 +00:00
third_party Bug 1577850 - Vendor dependencies for serde_yaml crate. r=webdriver-reviewers,jgraham 2019-10-01 22:30:04 +00:00
toolkit Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-10-09 13:38:28 +03:00
tools Bug 1586757 - Rename .jsm files to .jsm.js to allow type checking; r=julienw 2019-10-08 20:48:04 +00:00
uriloader Bug 1563343 - Do not search for OS protocol handlers in GV; just let Gecko return ERROR_UNKNOWN_PROTOCOL. r=snorp,geckoview-reviewers,esawin 2019-10-08 19:05:09 +00:00
view Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-10-06 18:29:55 +00:00
widget Backed out 8 changesets (bug 1563350, bug 1563351, bug 1563349, bug 1567939) on suspicion of causing OS X crashes https://bugzilla.mozilla.org/show_bug.cgi?id=1587351 CLOSED TREE a=backout 2019-10-09 13:33:05 +03:00
xpcom Bug 1586358 - Replace existing instances of GENERATED_FILES with references to the GeneratedFile template r=firefox-build-system-reviewers,mshal 2019-10-07 21:15:19 +00:00
xpfe/appshell Bug 1585156 - Remove useless inclusions of nsIDOMWindow.h and nsIDOMWindowUtils.h r=smaug 2019-09-30 22:06:47 +00:00
.arcconfig
.clang-format
.clang-format-ignore Bug 1580356 - Remove Fennec (Firefox for Android). r=snorp,mshal 2019-10-04 20:55:11 +00:00
.cron.yml Bug 1578495 - Run searchfox jobs on ash. r=asuth 2019-10-06 20:00:09 +00:00
.eslintignore Bug 1583785 - Remove devtools webpack reference in eslintignore r=Standard8 2019-09-25 12:15:29 +00:00
.eslintrc.js Bug 1579452 - Enable ESLint rule no-async-promise-executor on disabled locations for devtools. r=jlast 2019-09-17 17:50:23 +00:00
.flake8 Bug 1567642 - [lint.flake8] Skip remaining flake8 under Python 3 lint issues r=gbrown 2019-09-24 14:46:38 +00:00
.gdbinit
.gdbinit_python Bug 1564314 - Move gdbpp back to python/. r=nalexander 2019-07-11 02:39:31 +00:00
.git-blame-ignore-revs Bug 1572125 - Update .hg-annotate-ignore-revs and .git-blame-ignore-revs to ignore devtools/client/responsive reformatting using Prettier (Bug 1569574) in blame/annotate. r=vporof 2019-08-12 17:27:22 +00:00
.gitattributes Bug 770286: Prevent git LF-to-CRLF autoconversion r=glandium 2019-07-06 02:36:03 +00:00
.gitignore Bug 1559479 - mach lint complains about newtab node_modules r=dmose 2019-07-12 15:24:07 +00:00
.hg-annotate-ignore-revs Bug 1572125 - Update .hg-annotate-ignore-revs and .git-blame-ignore-revs to ignore devtools/client/responsive reformatting using Prettier (Bug 1569574) in blame/annotate. r=vporof 2019-08-12 17:27:22 +00:00
.hg-format-source
.hgignore Bug 1575089 - Add a new Talos test that measures warm startup time with a number of real-world WebExtensions installed. r=rwood 2019-08-31 06:58:00 +00:00
.hgtags No bug - Tagging mozilla-central b338d55d5007ce5a7d4cdce3aaa8e9f63c5555f7 with FIREFOX_NIGHTLY_70_END a=release DONTBUILD CLOSED TREE 2019-09-02 08:59:36 +00:00
.lldbinit
.mailmap
.prettierignore Bug 1572332 - Move non-debugger devtools prefs into all.js and firefox.js. r=jdescottes 2019-08-26 01:44:59 +00:00
.prettierrc Bug 1578564 - Workaround a prettier warning so that we can run it on html/xhtml files. r=vporof 2019-09-04 06:59:03 +00:00
.taskcluster.yml Bug 1580622: Disable python bytecode generation in the decision task; r=nalexander on a CLOSED TREE 2019-10-07 22:48:48 +00:00
.trackerignore
.yamllint
.ycm_extra_conf.py
AUTHORS
CLOBBER Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2019-09-02 09:00:31 +00:00
Cargo.lock Bug 1584446 - Add an rkv fuzzing test for bug mdb_cursor_put, r=truber 2019-10-02 15:17:13 +00:00
Cargo.toml Bug 1582650 - Cranelift: update version to 0.44, rev to 182414f15c18538dfebbe040469ec8001e93ecc5. r=bbouvier. 2019-09-26 09:40:11 +00:00
GNUmakefile
LEGAL
LICENSE
Makefile.in Bug 1540276: Migrate authenticode signing to autograph r=Callek,mshal 2019-09-30 13:57:32 +00:00
README.txt
aclocal.m4
build.gradle Bug 1580356 - Remove Fennec (Firefox for Android). r=snorp,mshal 2019-10-04 20:55:11 +00:00
client.mk
client.py Bug 1559975 - fix python2 and python3 linter errors for client.py r=ahal 2019-09-11 21:06:34 +00:00
configure.in
configure.py Bug 844509 - Always encode config.status as utf-8. r=nalexander 2019-08-21 21:26:32 +00:00
gradle.properties Bug 1577814 - Increase Gradle heap size. r=nalexander 2019-08-30 17:13:46 +00:00
gradlew
gradlew.bat
mach Bug 1578348, drop compare-locales from the mach python2 list, r=Callek,ahal 2019-10-08 13:58:33 +00:00
moz.build Bug 1580028 - Always merge PGO profile data in the run task; r=firefox-build-system-reviewers,chmanchester 2019-09-10 21:56:15 +00:00
moz.configure Bug 1580670 - Disable Visual Studio backend when building GeckoView on Windows. r=froydnj 2019-09-17 13:47:50 +00:00
mozilla-config.h.in
old-configure.in Bug 1585355 - Back out (part of) Bug 1443823, removing -fno-keep-inline-dllexport which was only applied to mingw-gcc r=dmajor 2019-10-03 16:01:26 +00:00
package-lock.json Bug 1540982 - Upgrade to ESLint 6.2.2 and switch to ECMA version 11 (BigInt support, Dynamic imports). r=mossop 2019-08-27 14:51:29 +00:00
package.json Bug 1540982 - Upgrade to ESLint 6.2.2 and switch to ECMA version 11 (BigInt support, Dynamic imports). r=mossop 2019-08-27 14:51:29 +00:00
settings.gradle Bug 1580356 - Remove Fennec (Firefox for Android). r=snorp,mshal 2019-10-04 20:55:11 +00:00
substitute-local-geckoview.gradle Bug 1533465 - Add Gradle script for substituting local GeckoView into downstream consumers. r=sebastian 2019-08-15 21:18:24 +00:00
test.mozbuild

README.txt

An explanation of the Mozilla Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://developer.mozilla.org/en/Mozilla_Source_Code_Directory_Structure

For information on how to build Mozilla from the source code, see:

    https://developer.mozilla.org/en/docs/Build_Documentation

To have your bug fix / feature added to Mozilla, you should create a patch and
submit it to Bugzilla (https://bugzilla.mozilla.org). Instructions are at:

    https://developer.mozilla.org/en/docs/Creating_a_patch
    https://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree

If you have a question about developing Mozilla, and can't find the solution
on https://developer.mozilla.org, you can try asking your question in a
mozilla.* Usenet group, or on IRC at irc.mozilla.org. [The Mozilla news groups
are accessible on Google Groups, or news.mozilla.org with a NNTP reader.]

Nightly development builds can be downloaded from:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://www.mozilla.org/firefox/channel/desktop/#nightly

Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy.