Changeset 245370 in webkit
- Timestamp:
- May 15, 2019, 7:51:12 PM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r245368 r245370 69 69 * loader/PingLoader.cpp: 70 70 (WebCore::PingLoader::sendPing): 71 72 2019-05-15 Simon Fraser <simon.fraser@apple.com> 73 74 Make LayerOverlapMap able to output to a TextStream 75 https://bugs.webkit.org/show_bug.cgi?id=197923 76 77 Reviewed by Zalan Bujtas. 78 79 Make it possible output LayerOverlapMap to a TextStream for logging. 80 81 * rendering/LayerOverlapMap.cpp: 82 (WebCore::OverlapMapContainer::rectList const): 83 (WebCore::operator<<): 84 * rendering/LayerOverlapMap.h: 85 (WebCore::LayerOverlapMap::overlapStack const): 71 86 72 87 2019-05-15 Youenn Fablet <youenn@apple.com> -
trunk/Source/WebCore/rendering/LayerOverlapMap.cpp
r245326 r245370 26 26 #include "config.h" 27 27 #include "LayerOverlapMap.h" 28 #include <wtf/text/TextStream.h> 28 29 29 30 namespace WebCore { … … 74 75 m_rectList.append(otherContainer.m_rectList); 75 76 } 77 78 const RectList& rectList() const { return m_rectList; } 76 79 77 80 private: … … 116 119 } 117 120 121 static TextStream& operator<<(TextStream& ts, const RectList& rectList) 122 { 123 ts << "bounds " << rectList.boundingRect << " (" << rectList.rects << " rects)"; 124 return ts; 125 } 126 127 static TextStream& operator<<(TextStream& ts, const OverlapMapContainer& container) 128 { 129 ts << container.rectList(); 130 return ts; 131 } 132 133 TextStream& operator<<(TextStream& ts, const LayerOverlapMap& overlapMap) 134 { 135 TextStream multilineStream; 136 137 TextStream::GroupScope scope(ts); 138 multilineStream << indent << "LayerOverlapMap\n"; 139 140 for (auto& container : overlapMap.overlapStack()) 141 multilineStream << " " << *container << "\n"; 142 143 ts << multilineStream.release(); 144 return ts; 145 } 146 118 147 } // namespace WebCore -
trunk/Source/WebCore/rendering/LayerOverlapMap.h
r245326 r245370 29 29 #include "RenderGeometryMap.h" 30 30 31 namespace WTF { 32 class TextStream; 33 } 34 31 35 namespace WebCore { 32 36 … … 49 53 RenderGeometryMap& geometryMap() { return m_geometryMap; } 50 54 55 const Vector<std::unique_ptr<OverlapMapContainer>>& overlapStack() const { return m_overlapStack; } 56 51 57 private: 52 58 Vector<std::unique_ptr<OverlapMapContainer>> m_overlapStack; … … 55 61 }; 56 62 63 TextStream& operator<<(TextStream&, const LayerOverlapMap&); 64 57 65 } // namespace WebCore
Note:
See TracChangeset
for help on using the changeset viewer.