Closed
Bug 343613
Opened 19 years ago
Closed 19 years ago
Make EventStateManager to use nsWeakFrame
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: smaug, Assigned: smaug)
References
Details
Attachments
(1 file)
15.39 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
EventStateManager should use nsFrameDestroyNotifier to check whether some
nsFrame objects are alive. This simplifies the code a bit - no need to have two
ways to do the same thing.
Assignee | ||
Updated•19 years ago
|
Summary: Make EventStateManager to use nsFrameDestroyNotifier → Make EventStateManager to use nsWeakFrame
Assignee | ||
Comment 1•19 years ago
|
||
This makes it quite difficult to use dead nsIFrames in ESM. No need to call
SetFrameExternalReference everywhere.
Attachment #229081 -
Flags: superreview?(roc)
Attachment #229081 -
Flags: review?(roc)
Comment on attachment 229081 [details] [diff] [review]
proposed patch
This is good. However, keep in mind that wherever we're using nsWeakFrame, we're creating potential problems if content gets restyled; we end up just aborting when in many cases we should be able to carry on. In many cases the *real* (not necessarily branch-compatible) fix is to move logic to operate on content instead of frames.
Attachment #229081 -
Flags: superreview?(roc)
Attachment #229081 -
Flags: superreview+
Attachment #229081 -
Flags: review?(roc)
Attachment #229081 -
Flags: review+
Assignee | ||
Comment 3•19 years ago
|
||
(In reply to comment #2)
>... we end up just
> aborting when in many cases we should be able to carry on. In many cases the
> *real* (not necessarily branch-compatible) fix is to move logic to operate on
> content instead of frames.
I understand that, but until the logic has moved, nsWeakFrame is needed.
Assignee | ||
Updated•19 years ago
|
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•