Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Side by Side Diff: Source/core/platform/graphics/GraphicsContextAnnotation.cpp

Issue 22572005: Remove all uses of the ASCIILiteral class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm it from wtf Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 if ((mode & AnnotateElementTag) && element) 121 if ((mode & AnnotateElementTag) && element)
122 m_elementTag = element->tagName(); 122 m_elementTag = element->tagName();
123 } 123 }
124 124
125 void GraphicsContextAnnotation::asAnnotationList(AnnotationList &list) const 125 void GraphicsContextAnnotation::asAnnotationList(AnnotationList &list) const
126 { 126 {
127 list.clear(); 127 list.clear();
128 128
129 if (m_rendererName) 129 if (m_rendererName)
130 list.append(std::make_pair(AnnotationKeyRendererName, ASCIILiteral(m_ren dererName))); 130 list.append(std::make_pair(AnnotationKeyRendererName, m_rendererName));
131 131
132 if (m_paintPhase) 132 if (m_paintPhase)
133 list.append(std::make_pair(AnnotationKeyPaintPhase, ASCIILiteral(m_paint Phase))); 133 list.append(std::make_pair(AnnotationKeyPaintPhase, m_paintPhase));
134 134
135 if (!m_elementId.isEmpty()) 135 if (!m_elementId.isEmpty())
136 list.append(std::make_pair(AnnotationKeyElementId, m_elementId)); 136 list.append(std::make_pair(AnnotationKeyElementId, m_elementId));
137 137
138 if (!m_elementClass.isEmpty()) 138 if (!m_elementClass.isEmpty())
139 list.append(std::make_pair(AnnotationKeyElementClass, m_elementClass)); 139 list.append(std::make_pair(AnnotationKeyElementClass, m_elementClass));
140 140
141 if (!m_elementTag.isEmpty()) 141 if (!m_elementTag.isEmpty())
142 list.append(std::make_pair(AnnotationKeyElementTag, m_elementTag)); 142 list.append(std::make_pair(AnnotationKeyElementTag, m_elementTag));
143 } 143 }
144 144
145 void GraphicsContextAnnotator::annotate(const PaintInfo& paintInfo, const Render Object* object) 145 void GraphicsContextAnnotator::annotate(const PaintInfo& paintInfo, const Render Object* object)
146 { 146 {
147 ASSERT(!m_context); 147 ASSERT(!m_context);
148 148
149 m_context = paintInfo.context; 149 m_context = paintInfo.context;
150 m_context->beginAnnotation(GraphicsContextAnnotation(paintInfo, object)); 150 m_context->beginAnnotation(GraphicsContextAnnotation(paintInfo, object));
151 } 151 }
152 152
153 void GraphicsContextAnnotator::finishAnnotation() 153 void GraphicsContextAnnotator::finishAnnotation()
154 { 154 {
155 ASSERT(m_context); 155 ASSERT(m_context);
156 m_context->endAnnotation(); 156 m_context->endAnnotation();
157 } 157 }
158 158
159 } 159 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698