Closed
Bug 1091321
Opened 11 years ago
Closed 11 years ago
Convert all the SVG functions that take an nsRenderingContext to take a gfxContext instead
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
mozilla36
People
(Reporter: jwatt, Assigned: jwatt)
References
Details
Attachments
(7 files, 1 obsolete file)
|
13.58 KB,
patch
|
longsonr
:
review+
|
Details | Diff | Splinter Review |
|
9.31 KB,
patch
|
longsonr
:
review+
|
Details | Diff | Splinter Review |
|
4.91 KB,
patch
|
longsonr
:
review+
|
Details | Diff | Splinter Review |
|
44.17 KB,
patch
|
longsonr
:
review+
|
Details | Diff | Splinter Review |
|
10.73 KB,
patch
|
longsonr
:
review+
|
Details | Diff | Splinter Review |
|
12.74 KB,
patch
|
longsonr
:
review+
|
Details | Diff | Splinter Review |
|
6.94 KB,
patch
|
longsonr
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8513946 -
Flags: review?(longsonr)
| Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8513947 -
Flags: review?(longsonr)
| Assignee | ||
Comment 3•11 years ago
|
||
Attachment #8513948 -
Flags: review?(longsonr)
| Assignee | ||
Comment 4•11 years ago
|
||
Attachment #8513949 -
Flags: review?(longsonr)
| Assignee | ||
Comment 5•11 years ago
|
||
Attachment #8513950 -
Flags: review?(longsonr)
| Assignee | ||
Comment 6•11 years ago
|
||
Attachment #8513951 -
Flags: review?(longsonr)
| Assignee | ||
Comment 7•11 years ago
|
||
Attachment #8513951 -
Attachment is obsolete: true
Attachment #8513951 -
Flags: review?(longsonr)
Attachment #8513952 -
Flags: review?(longsonr)
| Assignee | ||
Comment 8•11 years ago
|
||
Attachment #8513953 -
Flags: review?(longsonr)
Comment 9•11 years ago
|
||
Comment on attachment 8513946 [details] [diff] [review]
ApplyClipOrPaintClipMask
Review of attachment 8513946 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/thebes/gfxContext.cpp
@@ +683,5 @@
> + AzureState::PushedClip clip = { aPath, Rect(), mTransform };
> + CurrentState().pushedClips.AppendElement(clip);
> +}
> +
> +void
Duplicates the second half of gfxContext::Clip(). Perhaps gfxContext::Clip() should call this. And the rect clip above should be called by gfxContext::Clip() rather than calling it for consistency.
Also while you're here you might change the rect clip argument above to be aRect.
::: gfx/thebes/gfxContext.h
@@ +504,5 @@
> * Any current path will be destroyed by these functions!
> */
> void Clip(const Rect& rect);
> void Clip(const gfxRect& rect); // will clip to a rect
> + void Clip(Path* aPath);
aPath should be const
Attachment #8513946 -
Flags: review?(longsonr) → review+
Updated•11 years ago
|
Attachment #8513947 -
Flags: review?(longsonr) → review+
Updated•11 years ago
|
Attachment #8513948 -
Flags: review?(longsonr) → review+
Updated•11 years ago
|
Attachment #8513949 -
Flags: review?(longsonr) → review+
Updated•11 years ago
|
Attachment #8513950 -
Flags: review?(longsonr) → review+
Updated•11 years ago
|
Attachment #8513952 -
Flags: review?(longsonr) → review+
Updated•11 years ago
|
Attachment #8513953 -
Flags: review?(longsonr) → review+
| Assignee | ||
Comment 10•11 years ago
|
||
(In reply to Robert Longson from comment #9)
> ::: gfx/thebes/gfxContext.cpp
> @@ +683,5 @@
> > + AzureState::PushedClip clip = { aPath, Rect(), mTransform };
> > + CurrentState().pushedClips.AppendElement(clip);
> > +}
> > +
> > +void
>
> Duplicates the second half of gfxContext::Clip(). Perhaps gfxContext::Clip()
> should call this. And the rect clip above should be called by
> gfxContext::Clip() rather than calling it for consistency.
>
> Also while you're here you might change the rect clip argument above to be
> aRect.
This code originally came from bug 1090614 but I moved it here because I thought I'd land this first. That didn't happen though because this bug is still blocked on review in bug 651021. When I landed 1090614 I forgot to move the Clip changes back to the patches there, which broke the tree. I then landed them in a hurry to fix the bustage without addressing the comments here. Since we hope to have killed off gfxContext in the next 6-12 months I don't think we care about keeping it really neat and tidy though.
> ::: gfx/thebes/gfxContext.h
> @@ +504,5 @@
> > * Any current path will be destroyed by these functions!
> > */
> > void Clip(const Rect& rect);
> > void Clip(const gfxRect& rect); // will clip to a rect
> > + void Clip(Path* aPath);
>
> aPath should be const
It can't be, since the state stack keeps pointer s to non-const. Besides that Path objects are immutable anyway.
| Assignee | ||
Comment 11•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/e84b632bc007
https://hg.mozilla.org/integration/mozilla-inbound/rev/1653558849c3
https://hg.mozilla.org/integration/mozilla-inbound/rev/dc72e58dd4c2
https://hg.mozilla.org/integration/mozilla-inbound/rev/3313505b1b0e
https://hg.mozilla.org/integration/mozilla-inbound/rev/ddc50e4998ca
https://hg.mozilla.org/integration/mozilla-inbound/rev/67f94bf87c7c
https://hg.mozilla.org/integration/mozilla-inbound/rev/544fe2d91fcd
Comment 12•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e84b632bc007
https://hg.mozilla.org/mozilla-central/rev/1653558849c3
https://hg.mozilla.org/mozilla-central/rev/dc72e58dd4c2
https://hg.mozilla.org/mozilla-central/rev/3313505b1b0e
https://hg.mozilla.org/mozilla-central/rev/ddc50e4998ca
https://hg.mozilla.org/mozilla-central/rev/67f94bf87c7c
https://hg.mozilla.org/mozilla-central/rev/544fe2d91fcd
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in
before you can comment on or make changes to this bug.
Description
•