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

Side by Side Diff: Source/core/rendering/RenderGeometryMap.cpp

Issue 301243006: Make RenderGeometryMap::dumpSteps const. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/core/rendering/RenderGeometryMap.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 ASSERT(roundedIntPoint(rendererMappedResult) == roundedIntPoint(resu lt)); 130 ASSERT(roundedIntPoint(rendererMappedResult) == roundedIntPoint(resu lt));
131 } 131 }
132 } 132 }
133 #endif 133 #endif
134 134
135 return result; 135 return result;
136 } 136 }
137 137
138 #ifndef NDEBUG 138 #ifndef NDEBUG
139 // Handy function to call from gdb while debugging mismatched point/rect errors. 139 // Handy function to call from gdb while debugging mismatched point/rect errors.
140 void RenderGeometryMap::dumpSteps() 140 void RenderGeometryMap::dumpSteps() const
141 { 141 {
142 fprintf(stderr, "RenderGeometryMap::dumpSteps accumulatedOffset=%d,%d\n", m_ accumulatedOffset.width().toInt(), m_accumulatedOffset.height().toInt()); 142 fprintf(stderr, "RenderGeometryMap::dumpSteps accumulatedOffset=%d,%d\n", m_ accumulatedOffset.width().toInt(), m_accumulatedOffset.height().toInt());
143 for (int i = m_mapping.size() - 1; i >= 0; --i) { 143 for (int i = m_mapping.size() - 1; i >= 0; --i) {
144 fprintf(stderr, " [%d] %s: offset=%d,%d", i, m_mapping[i].m_renderer->de bugName().ascii().data(), m_mapping[i].m_offset.width().toInt(), m_mapping[i].m_ offset.height().toInt()); 144 fprintf(stderr, " [%d] %s: offset=%d,%d", i, m_mapping[i].m_renderer->de bugName().ascii().data(), m_mapping[i].m_offset.width().toInt(), m_mapping[i].m_ offset.height().toInt());
145 if (m_mapping[i].m_hasTransform) 145 if (m_mapping[i].m_hasTransform)
146 fprintf(stderr, " hasTransform"); 146 fprintf(stderr, " hasTransform");
147 fprintf(stderr, "\n"); 147 fprintf(stderr, "\n");
148 } 148 }
149 } 149 }
150 #endif 150 #endif
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 // If we're not working with multiple RenderViews, then any view is consider ed 337 // If we're not working with multiple RenderViews, then any view is consider ed
338 // "topmost" (to preserve original behavior). 338 // "topmost" (to preserve original behavior).
339 if (!(m_mapCoordinatesFlags & TraverseDocumentBoundaries)) 339 if (!(m_mapCoordinatesFlags & TraverseDocumentBoundaries))
340 return true; 340 return true;
341 341
342 return renderer->frame()->isMainFrame(); 342 return renderer->frame()->isMainFrame();
343 } 343 }
344 #endif 344 #endif
345 345
346 } // namespace WebCore 346 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderGeometryMap.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698