Some code clean up for bug1724650
Categories
(Core :: DOM: Editor, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox93 | --- | fixed |
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(8 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
This is for preparation work of bug 1724650.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
It was enabled for working on implementing blink-compat white-space normalizer,
but currently nobody works on it actively. Therefore, we should disable it
at running mochitests for detecting any regressions in the default settings.
Assignee | ||
Comment 2•4 years ago
|
||
Depends on D123868
Assignee | ||
Comment 3•4 years ago
|
||
The method returns false even if linefeed characters are preformatted.
So, it should be renamed to explain what it does clearer.
And this renames TextFragmentData::mIsPreformatted
and its accessors too.
Depends on D123869
Assignee | ||
Comment 4•4 years ago
|
||
This patch adds EditorUtils::IsNewLinePreformatted()
to check whether a
linefeed character is collapsible or not.
Then, a lot of users of EditorDOMPointBase::Is*CharASCIISpace()
and
EditorDOMPointBase::Is*CharASCIISpaceOrNBSP()
should check whether the
white-space at the point is collapsible or not. Therefore, this patch adds
Is*CharCollapsibleASCIISpace()
and Is*CharCollapsibleASCIISpaceOrNBSP()
too.
Then, makes such callers use the new API instead.
Depends on D123870
Assignee | ||
Comment 5•4 years ago
|
||
Currently, it uses "normal text" and "normal white-spaces" for naming
enum class
members and their accessors. However, this is unclear what
does the normal mean since the word depends on context.
Therefore, this patch replaces the former with "non-collapsible characters" and
the latter is "collapsible white-spaces".
Depends on D123871
Assignee | ||
Comment 6•4 years ago
|
||
For preparation, this patch just adds new "preformatted line break" information
to the scan result related places. This will be used for \n
which is
preformatted by white-space: pre
, white-space: nowrap
,
white-space: pre-wrap
, but not used for white-space: pre-line
.
Depends on D123872
Assignee | ||
Comment 7•4 years ago
|
||
Although we should move it into EditorUtils
, currently, this is enough.
Depends on D123873
Assignee | ||
Comment 8•4 years ago
|
||
It's should not cross preformatted line break, therefore, the better name
for it is, it means whether the preformatted white-space is found or not.
Depends on D123874
Updated•3 years ago
|
Comment 11•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8d167b18b790
https://hg.mozilla.org/mozilla-central/rev/b55f2bffdb95
https://hg.mozilla.org/mozilla-central/rev/4be65378de38
https://hg.mozilla.org/mozilla-central/rev/11dce090ce94
https://hg.mozilla.org/mozilla-central/rev/f0f37363bbf7
https://hg.mozilla.org/mozilla-central/rev/b42a71e94db5
https://hg.mozilla.org/mozilla-central/rev/0153e0f42cbc
https://hg.mozilla.org/mozilla-central/rev/c8e63c2e2324
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 13•3 years ago
|
||
oops, I just forgot to mark this as fixed.
Description
•