Closed Bug 390423 Opened 17 years ago Closed 17 years ago

Simplify the signature of nsIFrame::GetPointFromOffset

Categories

(Core :: Layout, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha8

People

(Reporter: sharparrow1, Assigned: eschew)

Details

(Whiteboard: [good first bug])

Attachments

(2 files, 2 obsolete files)

Currently, nsIFrame::GetPointFromOffset takes both a prescontext and a rendering context; it needs neither one.
Whiteboard: [good first bug]
Attached patch Initial attempt at fix (obsolete) — Splinter Review
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.
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 on attachment 274964 [details] [diff] [review]
Initial attempt at fix

r+ just for mozilla/accessible changes.
Attachment #274964 - Flags: review+
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+
Attached patch Update to tip (obsolete) — Splinter Review
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)
We also have a patch that fixes that misspelling which is awaiting approval.
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+
As I said, those spelling errors were already fixed by me in another bug. I just checked in, so you'll have to merge.
Attached patch Second updateSplinter Review
Patch merged against the latest nsHyperTextAccessible.cpp. All other files same as before.
Attachment #276109 - Attachment is obsolete: true
Keywords: checkin-needed
Assignee: nobody → web+moz
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
I forgot to remove a now-unused presContext variable, leading to a compiler warning. Oops!
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+
Product: Core → Core Graveyard
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.

Attachment

General

Created:
Updated:
Size: