WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
52911
[v8] Refactoring: extract IntrusiveDOMWrapperMap into a seprate class and files.
https://bugs.webkit.org/show_bug.cgi?id=52911
Summary
[v8] Refactoring: extract IntrusiveDOMWrapperMap into a seprate class and files.
anton muhin
Reported
2011-01-21 12:12:27 PST
[v8] Refactoring: extract IntrusiveDOMWrapperMap into a seprate class and files.
Attachments
Patch
(19.97 KB, patch)
2011-01-21 12:18 PST
,
anton muhin
no flags
Details
Formatted Diff
Diff
Patch
(17.02 KB, patch)
2011-01-24 09:33 PST
,
anton muhin
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
anton muhin
Comment 1
2011-01-21 12:18:54 PST
Created
attachment 79773
[details]
Patch
anton muhin
Comment 2
2011-01-21 12:20:22 PST
It violates style rule about indentation in namespaces. I'd ask for waiver as it's a common style under bindings/v8. But I can easily adjust
WebKit Review Bot
Comment 3
2011-01-21 12:21:41 PST
Attachment 79773
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/bindings/v8/IntrusiveDOMWrapperMap.h:39: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 1 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
Nate Chapin
Comment 4
2011-01-21 12:27:27 PST
Comment on
attachment 79773
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=79773&action=review
I'd be inclined to just go ahead and fix the namespace indent. Start this file off confirming to style guide and all that :)
> Source/WebCore/bindings/v8/IntrusiveDOMWrapperMap.cpp:36 > +bool IntrusiveDOMWrapperMap::removeIfPresent(Node* obj, v8::Persistent<v8::Object> value)
Is there something special about this function that it's the only one implemented in the cpp? Just seems a weird split between the .h and the .cpp to me.
anton muhin
Comment 5
2011-01-21 12:33:54 PST
(In reply to
comment #4
)
> (From update of
attachment 79773
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=79773&action=review
> > I'd be inclined to just go ahead and fix the namespace indent. Start this file off confirming to style guide and all that :)
Ok, np.
> > > Source/WebCore/bindings/v8/IntrusiveDOMWrapperMap.cpp:36 > > +bool IntrusiveDOMWrapperMap::removeIfPresent(Node* obj, v8::Persistent<v8::Object> value) > > Is there something special about this function that it's the only one implemented in the cpp? Just seems a weird split between the .h and the .cpp to me.
I don't remember---something tells me it was missing class definitions, but I am not sure. I'll give a try next week. It's not performance critical though, so keeping it in .cpp might be a good thing code-size-wise. Thanks a lot for feedback, Nate! And have a nice weekend.
anton muhin
Comment 6
2011-01-24 09:33:24 PST
Created
attachment 79935
[details]
Patch
anton muhin
Comment 7
2011-01-24 09:34:49 PST
Nate, I've uploaded new version which fixes style violation and brings removeIfPresent method into the header. May you have another look? (In reply to
comment #5
)
> (In reply to
comment #4
) > > (From update of
attachment 79773
[details]
[details]) > > View in context:
https://bugs.webkit.org/attachment.cgi?id=79773&action=review
> > > > I'd be inclined to just go ahead and fix the namespace indent. Start this file off confirming to style guide and all that :) > > Ok, np. > > > > > > Source/WebCore/bindings/v8/IntrusiveDOMWrapperMap.cpp:36 > > > +bool IntrusiveDOMWrapperMap::removeIfPresent(Node* obj, v8::Persistent<v8::Object> value) > > > > Is there something special about this function that it's the only one implemented in the cpp? Just seems a weird split between the .h and the .cpp to me. > > I don't remember---something tells me it was missing class definitions, but I am not sure. I'll give a try next week. It's not performance critical though, so keeping it in .cpp might be a good thing code-size-wise. > > Thanks a lot for feedback, Nate! And have a nice weekend.
anton muhin
Comment 8
2011-01-24 11:43:24 PST
Comment on
attachment 79935
[details]
Patch Thanks a lot, Nate
WebKit Commit Bot
Comment 9
2011-01-24 12:22:36 PST
Comment on
attachment 79935
[details]
Patch Clearing flags on attachment: 79935 Committed
r76541
: <
http://trac.webkit.org/changeset/76541
>
WebKit Commit Bot
Comment 10
2011-01-24 12:22:42 PST
All reviewed patches have been landed. Closing bug.
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