Closed
Bug 390423
Opened 17 years ago
Closed 17 years ago
Simplify the signature of nsIFrame::GetPointFromOffset
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha8
People
(Reporter: sharparrow1, Assigned: eschew)
Details
(Whiteboard: [good first bug])
Attachments
(2 files, 2 obsolete files)
24.73 KB,
patch
|
Details | Diff | Splinter Review | |
1.35 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
bzbarsky
:
approval1.9+
|
Details | Diff | Splinter Review |
Currently, nsIFrame::GetPointFromOffset takes both a prescontext and a rendering context; it needs neither one.
Reporter | ||
Updated•17 years ago
|
Whiteboard: [good first bug]
Assignee | ||
Comment 1•17 years ago
|
||
This fixes all the usages of GetPointFromOffset that lxr knows of, and updates the IID of nsIFrame.
I also ended up modifying the method signatures of PresShell::CreateRangePaintInfo and PresShell::ClipListToRange, as they took nsIRenderingContext pointers solely to pass to GetPointFromOffset.
Reporter | ||
Comment 2•17 years ago
|
||
Comment on attachment 274964 [details] [diff] [review]
Initial attempt at fix
Looks good to me!
You'll want to request sr from roc, and an additional review from Aaron Leventhal (aaronleventhal@moonset.net) for the accessibility changes.
Attachment #274964 -
Flags: review+
Comment 3•17 years ago
|
||
Comment on attachment 274964 [details] [diff] [review]
Initial attempt at fix
r+ just for mozilla/accessible changes.
Attachment #274964 -
Flags: review+
Assignee | ||
Updated•17 years ago
|
Attachment #274964 -
Flags: superreview?(roc)
Comment on attachment 274964 [details] [diff] [review]
Initial attempt at fix
nice work! need something to do next? :-)
Attachment #274964 -
Flags: superreview?(roc) → superreview+
Assignee | ||
Comment 5•17 years ago
|
||
This fixes a CVS conflict that occurred in accessible/src/html/nsHyperTextAccessible.cpp after I created the original patch. I also took the liberty of replacing "OFfset" with "Offset" in that file, as I assumed that "OFfset" is a search-and-replaced misspelling. All the other parts of the diff are unchanged (apart from being more up-to-date, of course).
As I don't have commit privs, if someone could check in, that'd be dandy.
Attachment #274964 -
Attachment is obsolete: true
Attachment #276109 -
Flags: review?(aaronleventhal)
Comment 6•17 years ago
|
||
We also have a patch that fixes that misspelling which is awaiting approval.
Comment 7•17 years ago
|
||
Comment on attachment 276109 [details] [diff] [review]
Update to tip
You need approval right now before it can get checked in, since we're in semi-lock-down. (See details on Firefox tbox page).
We also have a patch that fixes that misspelling in mozilla/accessible which is awaiting approval. It might get checked in before yours does -- you don't really need to fix the misspelling but it's no problem if you do.
Attachment #276109 -
Flags: review?(aaronleventhal)
Attachment #276109 -
Flags: review+
Attachment #276109 -
Flags: approval1.9?
Comment on attachment 276109 [details] [diff] [review]
Update to tip
>- PRUint32 startRenderedOFfset, endRenderedOFfset;
>+ PRUint32 startRenderedOffset, endRenderedOFfset;
I find it curious that you're fixing the spelling of one variable but not the other.
a1.9=dbaron
Attachment #276109 -
Flags: approval1.9? → approval1.9+
Comment 9•17 years ago
|
||
As I said, those spelling errors were already fixed by me in another bug. I just checked in, so you'll have to merge.
Assignee | ||
Comment 10•17 years ago
|
||
Patch merged against the latest nsHyperTextAccessible.cpp. All other files same as before.
Attachment #276109 -
Attachment is obsolete: true
Reporter | ||
Updated•17 years ago
|
Keywords: checkin-needed
Updated•17 years ago
|
Assignee: nobody → web+moz
Comment 11•17 years ago
|
||
layout/base/nsCaret.cpp 1.179
layout/base/nsPresShell.cpp 3.1046
accessible/src/html/nsHyperTextAccessible.cpp 1.73
accessible/src/msaa/nsTextAccessibleWrap.cpp 1.25
accessible/src/msaa/nsTextAccessibleWrap.h 1.8
layout/generic/nsFrame.cpp 3.747
layout/generic/nsFrame.h 3.270
layout/generic/nsIFrame.h 3.376
layout/generic/nsSelection.cpp 3.291
layout/generic/nsTextFrameThebes.cpp 3.69
Status: NEW → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9 M8
Assignee | ||
Comment 12•17 years ago
|
||
I forgot to remove a now-unused presContext variable, leading to a compiler warning. Oops!
Comment 13•17 years ago
|
||
Comment on attachment 277201 [details] [diff] [review]
fix compiler warning
rs+a+alphabet-soup=me
Attachment #277201 -
Flags: superreview+
Attachment #277201 -
Flags: review+
Attachment #277201 -
Flags: approval1.9+
Updated•6 years ago
|
Product: Core → Core Graveyard
Updated•6 years ago
|
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•