Closed
Bug 1257383
Opened 10 years ago
Closed 10 years ago
Get rid of ScrollableLayerGuid::mPresShellId
Categories
(Core :: Panning and Zooming, defect)
Core
Panning and Zooming
Tracking
()
RESOLVED
WONTFIX
| Tracking | Status | |
|---|---|---|
| firefox48 | --- | wontfix |
People
(Reporter: botond, Unassigned)
Details
(Keywords: arch, Whiteboard: [gfx-noted])
When subframe scrolling was introduced in bug 866232, the pres shell id was made of the components of ScrollableLayerGuid, the key that is meant to uniquely identify a scroll frame in the compositor.
The reasoning that was given at the time is (bug 866232 comment 9):
"In theory we might be able to do away with presShellId and just use
the scrollId but then there's special scrollIds like ROOT_SCROLL_ID
and such that we'd have to disambiguate. I felt it was better to
just keep all three."
ROOT_SCROLL_ID was removed in bug 900092. The only other "special" scroll id is NULL_SCROLL_ID, but that's interpreted as "no scroll frame", which there's no need to disambiguate with another identifier.
I therefore propose removing ScrollableLayerGuid::mPresShellId.
Note that I'm *not* proposing removing pres shell ids altogether. In addition to being used in ScrollableLayerGuid, they are stored as a member of FrameMetrics, and as far as I can tell, *that* use is still relevant [1].
[1] https://dxr.mozilla.org/mozilla-central/rev/341344bdec8f10bf50646cd6ef2355361435cbf6/dom/ipc/TabChild.cpp#245
| Reporter | ||
Comment 1•10 years ago
|
||
Kats, let me know if you agree with the reasoning here.
Keywords: arch
Whiteboard: [gfx-noted]
Comment 2•10 years ago
|
||
Yup I think that makes sense, we should be able to drop the presshell id from the guid if we leave it in the FM.
| Reporter | ||
Comment 3•10 years ago
|
||
In the short time since I've filed this bug, ScrollableLayerGuid has acquired another client (in bug 1257315) which does use mPresShellId. Given that, I'm now inclined to WONTFIX this unless some objects. (The alternative is to split ScrollableLayerGuid into two classes, one that stores the pres shell id and one that doesn't.)
Comment 4•10 years ago
|
||
WONTFIX'ing per comment 3, feel free to reopen if you still want to do this.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•