Closed Bug 141367 Opened 22 years ago Closed 22 years ago

remove files containing unused find code from PPEmbed

Categories

(Core Graveyard :: Embedding: Mac, defect)

PowerPC
macOS
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: akkzilla, Assigned: ccarlen)

References

Details

Attachments

(1 file)

I was working on bug 126312 (remove old find code) when I hit a snag: it seems
the embedding/powerplant code uses the old text services find code explicitly,
rather than going through the frozen interface nsIWebBrowserFind.

Is this part of the embedded app still active?  Is there any reason it needs to
do the logic itself rather than just calling nsIWebBrowserFind?  I'm not sure
what all the code in CFindComponent::SetupDocForSearch is doing -- it's
different from
anything the other find implementations do.
Blocks: 126312
CFindComponent.h/.cpp isn't used. It's not compiled and should just be CVS
removed. Didn't notice it was still there.
Status: NEW → ASSIGNED
Component: Embedding: Docshell → Embedding: Mac
OS: Windows 2000 → MacOS X
BTW, one thing which that code did, which is still not implemented in what's
behind nsIWebBrowserFind, is "match entire word" searching. It used the
LWBreaker from the doc to check the endpoints of a found pattern for being on
word boundaries. I think that was why I kept the file around: to add that
capability to the new code. However, the new find code is so different from the
TSM code, the old code in CFindComponent is not relevant anymore. Do I need a
patch of the to-be removed files for r= or just yank them? 
Changing summary since it does use the new find code.
Summary: powerplant embedded find needs to use new find → remove files containing unused find code from PPEmbed
Here's one pretty amusing line that will be removed:

- * Based on nsFindComponent.cpp by Pierre Phaneuf <pp@ludusdesign.com>

Ahem, that was when I first started with mozilla.
If an r=/sr= is needed to remove files, can akkana and kin do that? If not, just
let me know and I'll do it. 
Comment on attachment 82494 [details] [diff] [review]
diff for removed files

r=akkana, and thanks.
Attachment #82494 - Flags: review+
Comment on attachment 82494 [details] [diff] [review]
diff for removed files

sr=kin@netscape.com
Attachment #82494 - Flags: superreview+
They're gone. Thanks for quick r=/sr=.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Hardware: PC → Macintosh
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: