Changeset 271418 in webkit
- Timestamp:
- Jan 12, 2021 2:47:50 PM (3 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r271416 r271418 1 2021-01-12 Eric Carlson <eric.carlson@apple.com> 2 3 [Mac] Add runtime logging to format reader and WebM parser 4 https://bugs.webkit.org/show_bug.cgi?id=220423 5 <rdar://problem/72896655> 6 7 Unreviewed, address post-review comments after r271270. 8 9 * dom/Document.cpp: 10 (WebCore::Document::addToDocumentsMap): ASSERT that document was not already in the map. 11 (WebCore::Document::Document): Move ASSERT to addToDocumentsMap. 12 * dom/Document.h: 13 14 * platform/graphics/cocoa/SourceBufferParserWebM.cpp: 15 (WTF::LogArgument<webm::TrackType>::toString): Return ASCIILiteral instead of String. 16 (WTF::LogArgument<webm::Id>::toString): Ditto. 17 (WTF::LogArgument<WebCore::SourceBufferParserWebM::State>::toString): Ditto. 18 1 19 2021-01-12 Chris Fleizach <cfleizach@apple.com> 2 20 -
trunk/Source/WebCore/dom/Document.cpp
r271401 r271418 551 551 } 552 552 553 auto Document::addToDocumentsMap() -> DocumentsMap::AddResult 553 void Document::addToDocumentsMap() 554 554 { 555 555 auto addResult = allDocumentsMap().add(m_identifier, this); 556 ASSERT_UNUSED(addResult, addResult.isNewEntry); 557 556 558 configureSharedLogger(); 557 558 return addResult;559 559 } 560 560 … … 640 640 , m_selection(makeUniqueRef<FrameSelection>(this)) 641 641 { 642 auto addResult = addToDocumentsMap(); 643 ASSERT_UNUSED(addResult, addResult.isNewEntry); 642 addToDocumentsMap(); 644 643 645 644 // We depend on the url getting immediately set in subframes, but we -
trunk/Source/WebCore/dom/Document.h
r271270 r271418 1722 1722 static void configureSharedLogger(); 1723 1723 1724 DocumentsMap::AddResultaddToDocumentsMap();1724 void addToDocumentsMap(); 1725 1725 void removeFromDocumentsMap(); 1726 1726 -
trunk/Source/WebCore/platform/graphics/cocoa/SourceBufferParserWebM.cpp
r271270 r271418 63 63 64 64 template<> struct LogArgument<webm::TrackType> { 65 static StringtoString(webm::TrackType type)65 static ASCIILiteral toString(webm::TrackType type) 66 66 { 67 67 switch (type) { … … 79 79 80 80 template<> struct LogArgument<webm::Id> { 81 static StringtoString(webm::Id id)81 static ASCIILiteral toString(webm::Id id) 82 82 { 83 83 switch (id) { … … 236 236 237 237 template<> struct LogArgument<WebCore::SourceBufferParserWebM::State> { 238 static StringtoString(WebCore::SourceBufferParserWebM::State state)238 static ASCIILiteral toString(WebCore::SourceBufferParserWebM::State state) 239 239 { 240 240 switch (state) {
Note: See TracChangeset
for help on using the changeset viewer.