Closed Bug 290752 Opened 21 years ago Closed 20 years ago

Style context parentage warnings with scrollframes

Categories

(Core :: Layout, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bzbarsky, Assigned: roc)

Details

Attachments

(1 file)

STEPS TO REPRODUCE: 1) Start currrent debug build 2) Hover the URL bar a few times ACTUAL RESULTS: frame: Area(div)(-1) (0x860520c) style: 0x8605178 :-moz-scrolled-content {} Wrong parent style context: style: 0x86050e4 :-moz-scrolled-content {} should be using: style: 0x85f4de4 {} EXPECTED RESULTS: No warnings.
I'm guessing that the problem is that GetStyleContextParent() isn't returning the thing we use as the parent in the frame constructor somewhere, but I don't know where...
I thought I saw this before, but I can't reproduce it right now.
Hmm... Hovering over the url bar (classic theme) reproduces quite reliably...
Attached patch fixSplinter Review
We were creating an extra, unnecessary level of style contexts there. The only issue is that we want the root scrolled frame to have both -moz-scrolled-content and -moz-canvas (or -moz-page-sequence) pseudos. I've solved this by introducing -moz-scrolled-canvas and -moz-scrolled-page-sequence and arranging for ua.css to give them the union of the style rules. Maybe there's a better way...
Attachment #181932 - Flags: superreview?(bzbarsky)
Attachment #181932 - Flags: review?(bzbarsky)
Comment on attachment 181932 [details] [diff] [review] fix No, this looks reasonable...
Attachment #181932 - Flags: superreview?(bzbarsky)
Attachment #181932 - Flags: superreview+
Attachment #181932 - Flags: review?(bzbarsky)
Attachment #181932 - Flags: review+
Comment on attachment 181932 [details] [diff] [review] fix Fixes annoying warning spam on the console (regression) which people have been complaining about
Attachment #181932 - Flags: approval1.8b2?
OS: Linux → All
Attachment #181932 - Flags: approval1.8b2? → approval1.8b2+
checked in
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: