зеркало из https://github.com/mozilla/gecko-dev.git
cc758fd688
Previously, when we were about to add text from a text node, we looked at the parent to determine if it was a block element and added space based on that. This caused problems if there were multiple text nodes inside a block because we ended up adding space between those text nodes, even if there was no intervening block. Instead, since we're walking the tree, we now add space whenever we encounter a block, both before and after its descendants. If there are multiple adjacent blocks, this does mean we append multiple spaces, but we compress space befor returning to the caller anyway. This fixes highlights in address bar suggestions being separated from the rest of the suggestion. Differential Revision: https://phabricator.services.mozilla.com/D141722 |
||
---|---|---|
.. | ||
android | ||
aom | ||
atk | ||
base | ||
basetypes | ||
docs | ||
generic | ||
html | ||
interfaces | ||
ipc | ||
mac | ||
other | ||
tests | ||
windows | ||
xpcom | ||
xul | ||
moz.build |