WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
175028
Use references rather than pointers for register/unregister functions, and more
https://bugs.webkit.org/show_bug.cgi?id=175028
Summary
Use references rather than pointers for register/unregister functions, and more
Darin Adler
Reported
2017-08-01 09:11:34 PDT
Use references rather than pointers for register/unregister functions, and more
Attachments
Patch
(251.54 KB, patch)
2017-08-01 09:12 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Patch
(255.09 KB, patch)
2017-09-02 12:14 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Patch
(261.63 KB, patch)
2017-09-03 22:32 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Patch
(262.92 KB, patch)
2017-09-03 22:55 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Patch
(262.86 KB, patch)
2017-09-03 22:58 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Patch
(267.20 KB, patch)
2017-09-04 00:04 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Patch
(268.02 KB, patch)
2017-09-04 09:26 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Patch
(268.26 KB, patch)
2017-09-10 13:29 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Patch
(279.30 KB, patch)
2019-01-19 14:05 PST
,
Darin Adler
dbates
: review+
Details
Formatted Diff
Diff
Show Obsolete
(8)
View All
Add attachment
proposed patch, testcase, etc.
Darin Adler
Comment 1
2017-08-01 09:12:35 PDT
Comment hidden (obsolete)
Created
attachment 316861
[details]
Patch
Darin Adler
Comment 2
2017-08-01 09:12:58 PDT
Comment hidden (obsolete)
Current patch compiles on Mac, but likely not on iOS, GTK, WPE, Windows.
Darin Adler
Comment 3
2017-09-02 12:14:30 PDT
Comment hidden (obsolete)
Created
attachment 319727
[details]
Patch
Darin Adler
Comment 4
2017-09-03 22:32:38 PDT
Comment hidden (obsolete)
Created
attachment 319838
[details]
Patch
Darin Adler
Comment 5
2017-09-03 22:55:24 PDT
Comment hidden (obsolete)
Created
attachment 319840
[details]
Patch
Darin Adler
Comment 6
2017-09-03 22:58:10 PDT
Comment hidden (obsolete)
Created
attachment 319841
[details]
Patch
Darin Adler
Comment 7
2017-09-04 00:04:47 PDT
Comment hidden (obsolete)
Created
attachment 319843
[details]
Patch
Darin Adler
Comment 8
2017-09-04 09:26:28 PDT
Comment hidden (obsolete)
Created
attachment 319854
[details]
Patch
Darin Adler
Comment 9
2017-09-04 20:34:37 PDT
Comment hidden (obsolete)
Need help getting this to compile on iOS. The EWS log does not include the compile error I missed.
Darin Adler
Comment 10
2017-09-10 13:29:01 PDT
Comment hidden (obsolete)
Created
attachment 320401
[details]
Patch
Darin Adler
Comment 11
2019-01-19 14:05:08 PST
Created
attachment 359623
[details]
Patch
Darin Adler
Comment 12
2019-01-20 12:36:21 PST
Looks like this compiles, passes all tests, so ready to review and land.
Daniel Bates
Comment 13
2019-01-20 16:23:02 PST
Comment on
attachment 359623
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=359623&action=review
I get the sense you were holding back from making more changes to keep this patch focused on the task at hand. I know I had difficulty keeping myself from commenting on other nits. I couldn’t help myself in the few comments I did make. Oops! Feel free to disregard.
> Source/WebCore/dom/Document.h:1600 > + void buildAccessKeyMap(TreeScope& root);
Parameter name doesn’t add much value to me :/
> Source/WebCore/dom/DocumentMarkerController.cpp:65 > + for (TextIterator markedText(&range); !markedText.atEnd(); markedText.advance()) {
Ok as-is. Be a bit more idiomatic looking if we use assignment notation to invoke the constructor when initializing markedText.
> Source/WebCore/dom/DocumentMarkerController.cpp:104 > + for (TextIterator markedText(&range); !markedText.atEnd(); markedText.advance()) {
Ditto.
> Source/WebCore/dom/DocumentMarkerController.cpp:117 > + for (TextIterator markedText(&range); !markedText.atEnd(); markedText.advance()) {
Ditto
> Source/WebCore/dom/DocumentMarkerController.cpp:128 > + for (TextIterator markedText(&range); !markedText.atEnd(); markedText.advance()) {
Ditto
> Source/WebCore/dom/DocumentMarkerController.cpp:138 > + for (TextIterator markedText(&range); !markedText.atEnd(); markedText.advance()) {
Ditto
Darin Adler
Comment 14
2019-01-21 10:58:20 PST
Comment on
attachment 359623
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=359623&action=review
>> Source/WebCore/dom/Document.h:1600 >> + void buildAccessKeyMap(TreeScope& root); > > Parameter name doesn’t add much value to me :/
Fixed.
>> Source/WebCore/dom/DocumentMarkerController.cpp:65 >> + for (TextIterator markedText(&range); !markedText.atEnd(); markedText.advance()) { > > Ok as-is. Be a bit more idiomatic looking if we use assignment notation to invoke the constructor when initializing markedText.
I think the semantics here are initialization and not assignment, so it’s probably not the right thing to do. If we did want to do it, we’d have to change the TextIterator constructor to no longer be marked "explicit".
Darin Adler
Comment 15
2019-01-21 11:01:30 PST
Committed
r240237
: <
https://trac.webkit.org/changeset/240237
>
Radar WebKit Bug Importer
Comment 16
2019-01-21 11:02:29 PST
<
rdar://problem/47431526
>
David Kilzer (:ddkilzer)
Comment 17
2019-01-21 11:52:42 PST
(In reply to Darin Adler from
comment #15
)
> Committed
r240237
: <
https://trac.webkit.org/changeset/240237
>
Reverted the Xcode project changes here: Committed
r240239
: <
https://trac.webkit.org/changeset/240239
>
Darin Adler
Comment 18
2019-01-22 09:57:22 PST
(In reply to David Kilzer (:ddkilzer) from
comment #17
)
> Reverted the Xcode project changes here: > > Committed
r240239
: <
https://trac.webkit.org/changeset/240239
>
Thanks David; I just let Xcode update the file and didn’t realize there was version skew.
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