Closed Bug 313516 Opened 20 years ago Closed 20 years ago

[FIX]RecreateFramesForContent should flush

Categories

(Core :: Layout, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: Biesinger, Assigned: bzbarsky)

Details

Attachments

(1 file)

Followup from bug 313440 RecreateFramesFor should probably flush the sink to avoid possible content duplication.
biesi, do you recall why the patch for bug 1156 did: 992 // Need the following line before calling RecreateFramesFor 993 mozAutoDocUpdate upd(doc, UPDATE_CONTENT_STATE, PR_TRUE); 994 995 PRUint32 numShells = doc->GetNumberOfShells(); 996 for (PRUint32 i = 0; i < numShells; ++i) { 997 nsIPresShell* shell = doc->GetShellAt(i); 998 shell->RecreateFramesFor(thisContent); (that is, why we did that first part)? I seem to recall asking you to do it, but can't recall what the reason was, exactly... I _think_ it was supposed to flush the sink, in which case it's not working now, of course.... ;)
quoting the relevant parts of the IRC discussion: Mai 30 18:32:34 bz biesi: RecreateFramesFor is idempotent under some assumptions Mai 30 18:32:44 bz biesi: the main one being that all content in the DOM has been notified for Mai 30 18:33:04 bz biesi: that is, that the sink has been flushed Mai 30 18:33:36 bz biesi: that's the benefit of the content state approach -- you get that for free [...] Mai 30 18:34:43 bz biesi: so I'd try calling Begin/EndUpdate around your reframes I believe that this was needed to fix this problem I had: Mai 30 18:08:40 biesi bz, would you have any idea why I would get two ObjectFrames for an <object>, one of them pretty misplaced on the screen as well as the frame tree?
Ah, right. And then I went and made CONTENT_STATE updates _not_ flush the sink... ;)
Assignee: nobody → bzbarsky
Priority: -- → P1
Summary: RecreateFramesForContent should flush → [FIX]RecreateFramesForContent should flush
Target Milestone: --- → mozilla1.9alpha
Attached patch FixSplinter Review
Attachment #200700 - Flags: superreview?(roc)
Attachment #200700 - Flags: review?(roc)
Attachment #200700 - Flags: superreview?(roc)
Attachment #200700 - Flags: superreview+
Attachment #200700 - Flags: review?(roc)
Attachment #200700 - Flags: review+
Fixed.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: