RESOLVED FIXED Bug 73026
[MutationObservers] Remove platform-dependent code in Document.cpp resulting from Mutation Event histogram collection
https://bugs.webkit.org/show_bug.cgi?id=73026
Summary [MutationObservers] Remove platform-dependent code in Document.cpp resulting ...
Rafael Weinstein
Reported 2011-11-23 10:04:20 PST
This is cleanup from bug 72316
Attachments
Patch (14.85 KB, patch)
2011-12-16 13:59 PST, Rafael Weinstein
no flags
Patch (20.53 KB, patch)
2011-12-16 15:10 PST, Rafael Weinstein
no flags
Rafael Weinstein
Comment 1 2011-12-16 13:59:09 PST
Ryosuke Niwa
Comment 2 2011-12-16 14:16:21 PST
Comment on attachment 119665 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=119665&action=review > Source/WebCore/ChangeLog:11 > + No tests need. This patch is just a refactor. (OOPS!) You need to remove (OOPS!). > Source/WebCore/platform/chromium/HistogramSupportChromium.cpp:41 > +void HistogramSupport::histogramEnumeration(const char* name, int sample, int boundaryValue) > +{ > + PlatformSupport::histogramEnumeration(name, sample, boundaryValue); > +} Is it really okay to add an extra function call? Can't we make this function inline?
Rafael Weinstein
Comment 3 2011-12-16 14:23:35 PST
This only gets called in the document dtor.
Rafael Weinstein
Comment 4 2011-12-16 14:38:28 PST
Comment on attachment 119665 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=119665&action=review >> Source/WebCore/ChangeLog:11 >> + No tests need. This patch is just a refactor. (OOPS!) > > You need to remove (OOPS!). oops.
Adam Barth
Comment 5 2011-12-16 14:39:54 PST
Comment on attachment 119665 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=119665&action=review > Source/WebCore/platform/HistogramSupport.h:42 > +#if PLATFORM(CHROMIUM) > + static void histogramEnumeration(const char* name, int sample, int boundaryValue); > +#else > + static void histogramEnumeration(const char*, int, int) { } > +#endif This header shouldn't have an ifdef. We should have a HistogramSupportNone.cpp with the stub in it.
Ryosuke Niwa
Comment 6 2011-12-16 14:46:34 PST
Comment on attachment 119665 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=119665&action=review > Source/WebCore/platform/HistogramSupport.h:47 > +#endif // FileSystem_h Wrong comment.
Rafael Weinstein
Comment 7 2011-12-16 15:10:25 PST
WebKit Review Bot
Comment 8 2011-12-16 16:58:48 PST
Comment on attachment 119682 [details] Patch Clearing flags on attachment: 119682 Committed r103131: <http://trac.webkit.org/changeset/103131>
WebKit Review Bot
Comment 9 2011-12-16 16:58:55 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.