Closed Bug 403297 Opened 17 years ago Closed 11 years ago

Zooming triggers "WARNING: Unable to test style tree integrity -- no content node"

Categories

(Core :: Layout, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: jruderman, Assigned: dholbert)

References

Details

(Keywords: regression)

Attachments

(1 file)

Ctrl++ or Ctrl+- on any page triggers:

WARNING: Unable to test style tree integrity -- no content node: file /Users/jruderman/trunk/mozilla/layout/base/nsCSSFrameConstructor.cpp, line 10110

This even happens on the empty page
data:text/html,
We're doing a style change on the viewport.  That's rare, but can happen....
It's not rare any more... can we change the assertion so it doesn't fire in this case?
It's not an assertion... it's a warning.  And it _is_ rare compared to style changes in general.  ;)

We could probably skip the warning if the frame is a viewport... or even altogether. David, sound OK?
We hit this at pageload time, for files with <meta charset="utf-8">, since the charset-change happens asynchronously and triggers a rebuild of all style data starting with the viewport frame.

I agree that we should skip the warning if the frame is a viewport. (I was actually just about to file a bug on making that change, and then I ran across this one from bugzilla's new-bug-form dupe-finder.)
OS: Mac OS X → All
Hardware: x86 → All
Minimal testcase that demonstrates the beginning of comment 4:
  data:text/html,<meta charset="utf-8">
Attached patch fix v1Splinter Review
This patch skips the warning if we have a frame and it's a viewport frame.
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #763872 - Flags: review?(bzbarsky)
Comment on attachment 763872 [details] [diff] [review]
fix v1

r=me
Attachment #763872 - Flags: review?(bzbarsky) → review+
Flags: in-testsuite-
https://hg.mozilla.org/mozilla-central/rev/1e93bc25a700
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: