Closed Bug 406458 Opened 14 years ago Closed 14 years ago

stop using NATIVE_THEBES_CONTEXT

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: vlad, Assigned: vlad)

Details

Attachments

(1 file)

We have a pile of code that does:

nsRefPtr<gfxContext> ctx = static_cast<gfxContext*>(aRenderingContext.GetNativeGraphicData(nsIRenderingContext::NATIVE_THEBES_CONTEXT));

this sucks, and should be:

nsRefPtr<gfxContext> ctx = aRenderingContext.ThebesContext();

patch coming up.
Attached patch do the changeSplinter Review
Like so -- stop using (but don't get rid of) NATIVE_THEBES_CONTEXT to simplify all this code.
Attachment #291470 - Flags: review?(pavlov)
Attachment #291470 - Flags: review?(pavlov) → review+
Checked in this cleanup.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Why was the approval process ignored in this bug?
Comment on attachment 291470 [details] [diff] [review]
do the change

reed: to annoy you.
Attachment #291470 - Flags: approval1.9+
*hug*
You need to log in before you can comment on or make changes to this bug.