WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
47735
Remove some functions from class Node and make a few others non-virtual
https://bugs.webkit.org/show_bug.cgi?id=47735
Summary
Remove some functions from class Node and make a few others non-virtual
Darin Adler
Reported
Friday, October 15, 2010 8:59:05 PM UTC
Remove some functions from class Node and make a few others non-virtual
Attachments
Patch
(33.11 KB, patch)
2010-10-15 16:51 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Already-reviewed patch: Posted because it’s the only way to get the Early Warning System to test it
(33.63 KB, patch)
2010-10-18 11:27 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Darin Adler
Comment 1
Saturday, October 16, 2010 12:51:04 AM UTC
Created
attachment 70919
[details]
Patch
Darin Adler
Comment 2
Saturday, October 16, 2010 12:51:31 AM UTC
Reported
bug 47755
about the false positive style violation found in this patch.
WebKit Review Bot
Comment 3
Saturday, October 16, 2010 12:53:04 AM UTC
Attachment 70919
[details]
did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1 WebCore/dom/Node.h:38: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 1 in 9 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Review Bot
Comment 4
Saturday, October 16, 2010 2:34:10 AM UTC
Attachment 70919
[details]
did not build on chromium: Build output:
http://queues.webkit.org/results/4478010
Alexey Proskuryakov
Comment 5
Sunday, October 17, 2010 12:48:18 AM UTC
Comment on
attachment 70919
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=70919&action=review
r=me
> WebCore/ChangeLog:62 > + (WebCore::enclosingInline): Moved function here from the Node class. Also > + fixed an incorrect cast this function did, which assumed the function > + result was always an element, which the function does not guarantee.
Does this change observable behavior?
> WebCore/dom/Node.h:370 > + // see @ref traversePreviousNode()
Is there a reason to keep a part of this comment in Javadoc style?
Dimitri Glazkov (Google)
Comment 6
Sunday, October 17, 2010 12:59:48 AM UTC
Note the cr-linux redness. I think it's because of the FloatPoint.h include removed.
Darin Adler
Comment 7
Monday, October 18, 2010 4:21:21 PM UTC
(In reply to
comment #6
)
> Note the cr-linux redness. I think it's because of the FloatPoint.h include removed.
I’ll add an include of MathExtras.h to HistoryItem.cpp to pick up the ceil function.
Darin Adler
Comment 8
Monday, October 18, 2010 7:24:52 PM UTC
(In reply to
comment #5
)
> > WebCore/ChangeLog:62 > > + (WebCore::enclosingInline): Moved function here from the Node class. Also > > + fixed an incorrect cast this function did, which assumed the function > > + result was always an element, which the function does not guarantee. > > Does this change observable behavior?
I don’t think the incorrect cast had yet led to anything that would create incorrect code. I thought of it as a “ticking time bomb”, though.
> > WebCore/dom/Node.h:370 > > + // see @ref traversePreviousNode() > > Is there a reason to keep a part of this comment in Javadoc style?
I guess I could have gone further and tried to wipe out the half-baked attempt to use Javadoc style. I wasn’t sure whether I should.
Darin Adler
Comment 9
Monday, October 18, 2010 7:27:09 PM UTC
Created
attachment 71063
[details]
Already-reviewed patch: Posted because it’s the only way to get the Early Warning System to test it
WebKit Review Bot
Comment 10
Monday, October 18, 2010 7:28:55 PM UTC
Attachment 71063
[details]
did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1 WebCore/dom/Node.h:38: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 1 in 10 files If any of these errors are false positives, please file a bug against check-webkit-style.
Alexey Proskuryakov
Comment 11
Monday, October 18, 2010 7:32:26 PM UTC
> I guess I could have gone further and tried to wipe out the half-baked attempt to use Javadoc style. I wasn’t sure whether I should.
It seems strange to keep them in comments that were modified (this may be the only one, in fact).
Darin Adler
Comment 12
Monday, October 18, 2010 7:33:01 PM UTC
(In reply to
comment #11
)
> > I guess I could have gone further and tried to wipe out the half-baked attempt to use Javadoc style. I wasn’t sure whether I should. > > It seems strange to keep them in comments that were modified (this may be the only one, in fact).
Fixed now locally (although not in the patch I uploaded for the early warning system).
Darin Adler
Comment 13
Monday, October 18, 2010 8:52:49 PM UTC
Committed
r69987
: <
http://trac.webkit.org/changeset/69987
>
Lucas Forschler
Comment 14
Wednesday, February 6, 2019 5:04:06 PM UTC
Mass moving XML DOM bugs to the "DOM" Component.
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