Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gecko Bug 1955146] Make WhiteSpaceVisibilityKeeper::MergeFirstLineOfRightBlockElementIntoAncestorLeftBlockElement ignore empty Text nodes when scanning first character of the right block #51517

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

moz-wptsync-bot
Copy link
Collaborator

Although, the empty text should've been removed, but it may happen without the
normalization. Therefore, the lambda should keep scanning the first visible
char with ignoring empty Text nodes.

Additionally, there are similar methods which have the same lambda. Therefore,
this fixes them too.

I think we should make the scanner method take an option parameter to ignore
empty Text in a follow up bug.

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

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1955146
gecko-commit: 7a66a04b4fb05629534038b1325f0210c32c58e9
gecko-reviewers: m_kato

…toAncestorLeftBlockElement` ignore empty `Text` nodes when scanning first character of the right block

Although, the empty text should've been removed, but it may happen without the
normalization.  Therefore, the lambda should keep scanning the first visible
char with ignoring empty `Text` nodes.

Additionally, there are similar methods which have the same lambda.  Therefore,
this fixes them too.

I think we should make the scanner method take an option parameter to ignore
empty `Text` in a follow up bug.

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

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1955146
gecko-commit: 7a66a04b4fb05629534038b1325f0210c32c58e9
gecko-reviewers: m_kato
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Firefox project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants