RESOLVED FIXED 163645
Move many miscellaneous classes from ExceptionCode to Exception
https://bugs.webkit.org/show_bug.cgi?id=163645
Summary Move many miscellaneous classes from ExceptionCode to Exception
Darin Adler
Reported 2016-10-18 20:02:39 PDT
Move many miscellaneous classes from ExceptionCode to Exception
Attachments
Patch (110.12 KB, patch)
2016-10-18 21:59 PDT, Darin Adler
rniwa: review+
Darin Adler
Comment 1 2016-10-18 21:59:56 PDT
Ryosuke Niwa
Comment 2 2016-10-18 22:26:41 PDT
Comment on attachment 292039 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=292039&action=review > Source/WebCore/page/Performance.h:98 > - unsigned m_resourceTimingBufferSize; > + unsigned m_resourceTimingBufferSize { 150 }; We might wanna add a hyperlink to https://w3c.github.io/resource-timing/#extensions-performance-interface indicating where the source of the number 150. > Source/WebCore/page/PerformanceUserTiming.cpp:50 > + { ASCIILiteral { "navigationStart" }, &PerformanceTiming::navigationStart }, I think ASCIILiteral(~) was more readable than ASCIILiteral { ~ } especially because we're nesting curly brackets here. > Source/WebCore/page/PerformanceUserTiming.cpp:129 > + double value = static_cast<double>((m_performance.timing().*(function))()); Jeez, this is some crazy member function call. I'm sure we can do better with lambdas & std::function but I guess that's for another time. > Source/WebCore/page/PerformanceUserTiming.cpp:175 > + Vector<RefPtr<PerformanceEntry>> entries; > for (auto& entry : performanceEntryMap.values()) > entries.appendVector(entry); Can't we just call copyValuesToVector instead? In fact, this entire function seems to be redundant given copyValuesToVector.
Darin Adler
Comment 3 2016-10-18 22:53:28 PDT
Comment on attachment 292039 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=292039&action=review >> Source/WebCore/page/Performance.h:98 >> + unsigned m_resourceTimingBufferSize { 150 }; > > We might wanna add a hyperlink to https://w3c.github.io/resource-timing/#extensions-performance-interface indicating where the source of the number 150. OK, will do. >> Source/WebCore/page/PerformanceUserTiming.cpp:50 >> + { ASCIILiteral { "navigationStart" }, &PerformanceTiming::navigationStart }, > > I think ASCIILiteral(~) was more readable than ASCIILiteral { ~ } especially because we're nesting curly brackets here. Not sure what to say. I prefer it the new way, but really don’t care too much about this strange source file so I guess I will do it your way. >> Source/WebCore/page/PerformanceUserTiming.cpp:175 >> entries.appendVector(entry); > > Can't we just call copyValuesToVector instead? > In fact, this entire function seems to be redundant given copyValuesToVector. No, we can’t. The values in this case are all vectors, and the result is the a single vector with all their contents appended.
Darin Adler
Comment 4 2016-10-19 00:02:55 PDT
Note You need to log in before you can comment on or make changes to this bug.