Closed Bug 664130 Opened 15 years ago Closed 14 years ago

jwatt's random small patches that need somewhere to request review

Categories

(Core :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla8

People

(Reporter: jwatt, Assigned: jwatt)

Details

Attachments

(9 files, 2 obsolete files)

980 bytes, patch
roc
: review+
jwatt
: checkin+
Details | Diff | Splinter Review
1.31 KB, patch
roc
: review+
jwatt
: checkin+
Details | Diff | Splinter Review
2.83 KB, patch
roc
: review+
jwatt
: checkin+
Details | Diff | Splinter Review
18.96 KB, patch
dholbert
: review+
jwatt
: checkin+
Details | Diff | Splinter Review
1.28 KB, patch
bzbarsky
: review+
jwatt
: checkin+
Details | Diff | Splinter Review
1.02 KB, patch
roc
: review+
jwatt
: checkin+
Details | Diff | Splinter Review
11.52 KB, patch
longsonr
: review+
jwatt
: checkin+
Details | Diff | Splinter Review
6.47 KB, patch
roc
: review+
jwatt
: checkin+
Details | Diff | Splinter Review
1.13 KB, patch
roc
: review+
jwatt
: checkin+
Details | Diff | Splinter Review
I'm forever finding myself wanting to make small improvements to pieces of the code that I'm reading. Given the overhead of opening and closing bugs just to get a quick review I often either roll these changes into a bigger patch that would be cleaner without them, or else don't bother to clean/clarify the code in question and just put up with the irritation. This bug is somewhere for me to attach such small patches for quick review.
Comment on attachment 539196 [details] [diff] [review] Document what GetOpaqueRegion is useful for Review of attachment 539196 [details] [diff] [review]: -----------------------------------------------------------------
Attachment #539196 - Flags: review?(roc) → review+
Attachment #539449 - Flags: review?(roc)
Attachment #539450 - Flags: review?(roc)
Comment on attachment 539448 [details] [diff] [review] Document what GetFrameBoundsForTransform is about Review of attachment 539448 [details] [diff] [review]: ----------------------------------------------------------------- ::: layout/base/nsDisplayList.h @@ +2139,5 @@ > const nsIFrame* aFrame, > const nsPoint &aOrigin); > > /** > + * Returns the bounds of a frame's context box as used to resolve "Returns the bounds of a frame as used to resolve" It's not the content-box or even the border-box really.
Attachment #539448 - Flags: review?(roc) → review+
Let's leave the other two for now since they will rot mattwoodrow's 3D transforms patches.
(In reply to comment #6) > > + * Returns the bounds of a frame's context box as used to resolve > > "Returns the bounds of a frame as used to resolve" > > It's not the content-box or even the border-box really. http://dev.w3.org/csswg/css3-2d-transforms/ says "refer to the size of the element's border box". Is that not what we do?
(In reply to comment #7) > Let's leave the other two for now since they will rot mattwoodrow's 3D > transforms patches. Sure.
While working on bug 614732 I bumped into the problem of some new const code not being able to call other methods that should be const. This fixes those methods while trying not to go too far down the endless rabbit warren that can be const fixing. Stopping at an arbitrary point meant putting in four const_casts, which serve as markers for further fixup.
Attachment #539760 - Flags: review?(dholbert)
Attachment #539760 - Flags: review?(dholbert) → review+
Comment on attachment 539196 [details] [diff] [review] Document what GetOpaqueRegion is useful for Pushed http://hg.mozilla.org/mozilla-central/rev/abde1fd28975
Attachment #539196 - Flags: checkin+
Comment on attachment 539448 [details] [diff] [review] Document what GetFrameBoundsForTransform is about Pushed http://hg.mozilla.org/mozilla-central/rev/dd1843b385b0
Attachment #539448 - Flags: checkin+
Comment on attachment 539760 [details] [diff] [review] const-ify some SVG element class methods Pushed http://hg.mozilla.org/mozilla-central/rev/e3efcfa1b14b
Attachment #539760 - Flags: checkin+
Version: unspecified → Trunk
Comment on attachment 541351 [details] [diff] [review] Add a documenting comment to nsROCSSPrimitiveValue Leave the comment at the old location, so it shows up in mxr, and r=me.
Attachment #541351 - Flags: review?(bzbarsky) → review+
Attachment #542105 - Flags: review?(roc)
Attachment #542106 - Flags: review?(roc)
Attachment #542118 - Flags: review?(longsonr) → review+
Comment on attachment 542105 [details] [diff] [review] Remove redundant 'isPositioned' check Review of attachment 542105 [details] [diff] [review]: ----------------------------------------------------------------- ::: layout/generic/nsFrame.cpp @@ +1800,5 @@ > } > } > > if (NS_SUCCEEDED(rv)) { > + if (applyAbsPosClipping) { Why is isPositioned redundant? We can reach here with isPositioned false, I think.
Comment on attachment 542106 [details] [diff] [review] Clarify some display list comments and code Review of attachment 542106 [details] [diff] [review]: ----------------------------------------------------------------- These transforms-related comment changes should wait for Matt's 3D transforms to be done.
(In reply to comment #19) > Why is isPositioned redundant? We can reach here with isPositioned false, I > think. It's redundant because applyAbsPosClipping can only be true if nsStyleDisplay->IsAbsolutelyPositioned() returns true, in which case isPositioned *must* be true, since it's set to nsStyleDisplay->IsPositioned() which returns true if nsStyleDisplay->IsAbsolutelyPositioned() returns true.
Attachment #542118 - Flags: checkin+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla8
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment on attachment 542105 [details] [diff] [review] Remove redundant 'isPositioned' check Review of attachment 542105 [details] [diff] [review]: -----------------------------------------------------------------
Attachment #542105 - Flags: review?(roc) → review+
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attachment #542105 - Flags: checkin+
roc, can you take another look at the reviews here now that 3d-transforms has landed?
Attachment #542106 - Attachment is obsolete: true
Attachment #542106 - Flags: review?(roc)
Attachment #552368 - Flags: review?(roc)
It hasn't completely landed yet.
Remind me why you want to rename IsTransformed to HasLocalTransform?
(In reply to Robert O'Callahan (:roc) (Mozilla Corporation) from comment #28) > Remind me why you want to rename IsTransformed to HasLocalTransform? Because the first time I was reading through code calling IsTransformed I assumed it meant "due to a transform on itself or any ancestor". The "Local" eliminates the potential for that misunderstanding.
Hmm ... that hasn't bothered me before. How about HasTransform, is that better for you? Matt, what do you think?
I don't think IsTransformed is so confusing if you're familiar with the method and encounter with the code regularly enough to remember it. It's just one of those "make the code easier for new people, or people that don't work with it often" type of tweaks. HasTransform would certainly be an improvement, but it seemed like in SVG code calls would look too much like a check for just the existence a 'transform' attribute. In fact even on HTML it could be misunderstood to be a check for the existence of just CSS transform. The "Local" was to hint that this might refer to more than just transform attributes or properties, since it will also be checking for implicit transforms such as from viewBox (anything that will create an nsDisplayTransform, basically).
I'm not sure that HasLocalTransform is much better. Will it make people think there are "global" transforms?
Attachment #539450 - Flags: checkin+
Attachment #541351 - Flags: checkin+
Attachment #552368 - Flags: checkin+
Attachment #558957 - Flags: checkin+
Attachment #539449 - Attachment is obsolete: true
Attachment #539449 - Flags: review?(roc)
Status: REOPENED → RESOLVED
Closed: 15 years ago14 years ago
Resolution: --- → FIXED
Pushed by ffxbld: https://hg.mozilla.org/releases/mozilla-release/rev/b16289a3fcbd const-ify some SVG element class methods. r=dholbert. https://hg.mozilla.org/releases/mozilla-release/rev/dbf773d916dd Document what GetOpaqueRegion is useful for. r=roc. https://hg.mozilla.org/releases/mozilla-release/rev/5b37ceb6897b Document what GetFrameBoundsForTransform is about. r=roc.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: