Closed Bug 549272 Opened 14 years ago Closed 14 years ago

mozilla.widget.render-mode should be initialized in all.js

Categories

(Core :: Graphics, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jtd, Assigned: bas.schouten)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

gfxWindowsPlatform::gfxWindowsPlatform reads in a pref 'mozilla.widget.render-mode', used for rendering.  The defaults are set here:

http://mxr.mozilla.org/mozilla-central/source/gfx/thebes/src/gfxWindowsPlatform.cpp#121

This logic should be in all.js also.
This has never been the case in the past, although I'm not sure why. Is there a reason this wasn't done in the past, and if so, should we change it?
Attachment #429774 - Flags: review?(vladimir)
Comment on attachment 429774 [details] [diff] [review]
Initialize mozilla.widget.render-mode

This is wrong, it should be initialized to -1 -- the default is different per platform at build time.
Attachment #429774 - Flags: review?(vladimir) → review-
Attachment #429774 - Attachment is obsolete: true
Attachment #429866 - Flags: review?(vladimir)
Pushed changeset a258698d412f.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Backed out
http://hg.mozilla.org/mozilla-central/rev/56c1507450be

Caused assertions to fire during mochitests:
###!!! ASSERTION: Invalid RenderMode!: 'Error', file e:/builds/moz2_slave/mozilla-central-win32-debug/build/widget/src/windows/nsWindowGfx.cpp, line 503
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
That would be due to bug 549668.
Depends on: 549668
Re-landed this along with bug 549668.
http://hg.mozilla.org/mozilla-central/rev/8871f153c651
Status: REOPENED → RESOLVED
Closed: 14 years ago14 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: