Simplify the code to get the composition bounds on android to not rely on the widget size.
Categories
(Core :: Layout, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox79 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
Details
Attachments
(4 files)
Assignee | ||
Comment 1•5 years ago
|
||
This should be equivalent because:
-
Content viewer size and widget size should eventually be the same always
(modulo mid-resize, see bug 1645954). -
Only the root content document has a widget on android (the puppet widget).
-
Only the root content document has a dynamic toolbar.
-
We were only calling this on the root document, which has no parent pres
context (at least with e10s). Without e10s we could have a chrome
prescontext (not sure it that ends up being a parent in the pres context
chain), but we should never change the resolution of that one, so I think
aScaleContentViewerSize is just useless.
This avoids having two sources of truth by always checking the content viewer
size without subtracting the dynamic toolbar max size.
Assignee | ||
Comment 2•5 years ago
|
||
No behavior change actually (as instant is the default behavior), but I
just noticed it while debugging these.
Depends on D80723
Assignee | ||
Comment 3•5 years ago
|
||
After the above, I don't think this is needed anymore, because we
shouldn't be looking at the widget size from layout.
It also shouldn't cause more reflows on desktop at least, because of the
early out in ResizeReflowIgnoreOverride before calling
SimpleResizeReflow().
Assignee | ||
Comment 4•5 years ago
|
||
No longer called. This was done as an optimization for OOP iframes, but
it affects the scrollport so it's clearly not sound (the visible rect
shouldn't affect the layout scroll port).
If very tall OOP iframes are a problem somehow, it's something that we
need to deal with in another place. It was, in fact, removed for
top-level remote iframes because of bug 1554861 and other regressions.
Depends on D80731
Comment 7•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/730dac40b4ba
https://hg.mozilla.org/mozilla-central/rev/a5af9ecdecd5
https://hg.mozilla.org/mozilla-central/rev/345be10ae3f6
https://hg.mozilla.org/mozilla-central/rev/8bde5b74dd1b
Description
•