Closed
Bug 937858
Opened 11 years ago
Closed 11 years ago
GetPaddingRectRelativeToSelf shouldn't name its border-only local var "bp"
Categories
(Core :: Layout, defect, P4)
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: dholbert, Assigned: dholbert)
Details
(Whiteboard: [qa-])
Attachments
(1 file)
911 bytes,
patch
|
MatsPalmgren_bugz
:
review+
|
Details | Diff | Splinter Review |
It looks like GetPaddingRectRelativeToSelf and GetContentRectRelativeToSelf have a shared history -- in particular, they both have a local variable "nsMargin bp". However, in GetContentRectRelativeToSelf, the name "bp" makes sense (border/padding): nsMargin bp(GetUsedBorderAndPadding()); but in GetPaddingRectRelativeToSelf, it doesn't make sense (it's just border): nsMargin bp(GetUsedBorder()); We should rename it from "bp" to "b" or, better, "border".
Assignee | ||
Updated•11 years ago
|
Priority: -- → P4
Assignee | ||
Updated•11 years ago
|
Summary: GetPaddingRectRelativeToSelf shouldn't name its "border" local var "bp" → GetPaddingRectRelativeToSelf shouldn't name its border-only local var "bp"
Assignee | ||
Comment 1•11 years ago
|
||
MXR link: http://mxr.mozilla.org/mozilla-central/source/layout/generic/nsFrame.cpp#979
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #831085 -
Flags: review?(matspal)
Comment 3•11 years ago
|
||
Comment on attachment 831085 [details] [diff] [review] fix: s/bp/border/ r=mats
Attachment #831085 -
Flags: review?(matspal) → review+
Assignee | ||
Comment 4•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/232b3e8afcf8
Flags: in-testsuite-
Comment 5•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/232b3e8afcf8
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Updated•10 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•