WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
15922
Implement more of Mozilla Selection API
https://bugs.webkit.org/show_bug.cgi?id=15922
Summary
Implement more of Mozilla Selection API
Alexey Proskuryakov
Reported
2007-11-09 07:55:40 PST
Looks like there is still not much in common between WebKit and Firefox Selection objects. Patch for more Firefox methods forthcoming.
Attachments
proposed patch
(25.10 KB, patch)
2007-11-09 08:07 PST
,
Alexey Proskuryakov
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2007-11-09 08:07:29 PST
Created
attachment 17156
[details]
proposed patch What is the conceptual difference between DOMSelection, Selection and SelectionController? Looks like we may have too many of those.
Darin Adler
Comment 2
2007-11-09 08:32:13 PST
(In reply to
comment #1
)
> What is the conceptual difference between DOMSelection, Selection and > SelectionController? Looks like we may have too many of those.
DOMSelection is the DOM's "selection object" API. It has the same relationship to SelectionController that DOMWindow has to Frame. Right now there's a problem in that we were "grooming" SelectionController to be this DOM object. So it has many functions that should simply be moved into DOMSelection. I think it's worthwhile to break out the DOM API just as we break out many aspects of the Frame object. Selection vs. SelectionController is another story. Selection is supposed to be an object that represents "a selection"; not necessarily what is selected right at this moment in a frame. A sort of "super-DOMRange". SelectionController, on the other hand, is "the selection management for a particular frame". However, there is some ancient code that uses SelectionController in the way we intend to use Selection, making a copy of it and modifying it. That should go away.
Darin Adler
Comment 3
2007-11-10 12:17:41 PST
Comment on
attachment 17156
[details]
proposed patch r=me But this is following the wrong pattern: We want to move the DOM operations into DOMSelection and not add them all to SelectionController unless they are somehow more generally useful.
Alexey Proskuryakov
Comment 4
2007-11-10 12:33:07 PST
Committed revision 27666.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug