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 1555030] Add NS_FRAME_SVG_LAYOUT into SVGViewFrame and nsSVGStopFrame. #17106

Merged
merged 1 commit into from May 31, 2019

Conversation

moz-wptsync-bot
Copy link
Collaborator

To avoid hitting the assertion for ResizeObserver, which calls GetBBox()
for all SVG elements.

Note:
If the target has SVG layout and its primary frame cannot be queries as
nsSVGDisplayableFrame, we return a default gfxRect(). And always
returning a default gfxRect() on or element makes ResizeObserver
doesn't report it (because it is always not active). This behavior
is the same as what Google Chrome has. (i.e. No event is fired.)

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

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1555030
gecko-commit: 58a92f5eff76adb20b44e6a37c58e63387be6b62
gecko-integration-branch: autoland
gecko-reviewers: dholbert, longsonr

To avoid hitting the assertion for ResizeObserver, which calls GetBBox()
for all SVG elements.

Note:
If the target has SVG layout and its primary frame cannot be queries as
nsSVGDisplayableFrame, we return a default gfxRect(). And always
returning a default gfxRect() on <view> or <stop> element makes ResizeObserver
doesn't report it (because it is always not active). This behavior
is the same as what Google Chrome has. (i.e. No event is fired.)

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

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1555030
gecko-commit: 58a92f5eff76adb20b44e6a37c58e63387be6b62
gecko-integration-branch: autoland
gecko-reviewers: dholbert, longsonr
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.

Already reviewed downstream.

@moz-wptsync-bot moz-wptsync-bot merged commit 3d2d087 into master May 31, 2019
@moz-wptsync-bot moz-wptsync-bot deleted the gecko/1555030 branch May 31, 2019 04:15
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.

None yet

3 participants