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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.cpp

Issue 2673543003: Migrate WTF::HashMap::remove() to ::erase() (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 3 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
4 * Copyright 2014 The Chromium Authors. All rights reserved. 4 * Copyright 2014 The Chromium Authors. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 bool markForInvalidation) { 54 bool markForInvalidation) {
55 m_patternMap.clear(); 55 m_patternMap.clear();
56 m_shouldCollectPatternAttributes = true; 56 m_shouldCollectPatternAttributes = true;
57 markAllClientsForInvalidation(markForInvalidation ? PaintInvalidation 57 markAllClientsForInvalidation(markForInvalidation ? PaintInvalidation
58 : ParentOnlyInvalidation); 58 : ParentOnlyInvalidation);
59 } 59 }
60 60
61 void LayoutSVGResourcePattern::removeClientFromCache(LayoutObject* client, 61 void LayoutSVGResourcePattern::removeClientFromCache(LayoutObject* client,
62 bool markForInvalidation) { 62 bool markForInvalidation) {
63 ASSERT(client); 63 ASSERT(client);
64 m_patternMap.remove(client); 64 m_patternMap.erase(client);
65 markClientForInvalidation( 65 markClientForInvalidation(
66 client, markForInvalidation ? PaintInvalidation : ParentOnlyInvalidation); 66 client, markForInvalidation ? PaintInvalidation : ParentOnlyInvalidation);
67 } 67 }
68 68
69 PatternData* LayoutSVGResourcePattern::patternForLayoutObject( 69 PatternData* LayoutSVGResourcePattern::patternForLayoutObject(
70 const LayoutObject& object) { 70 const LayoutObject& object) {
71 ASSERT(!m_shouldCollectPatternAttributes); 71 ASSERT(!m_shouldCollectPatternAttributes);
72 72
73 // FIXME: the double hash lookup is needed to guard against paint-time 73 // FIXME: the double hash lookup is needed to guard against paint-time
74 // invalidation (painting animated images may trigger layout invals which 74 // invalidation (painting animated images may trigger layout invals which
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 *patternLayoutObject, tileTransform); 211 *patternLayoutObject, tileTransform);
212 for (LayoutObject* child = patternLayoutObject->firstChild(); child; 212 for (LayoutObject* child = patternLayoutObject->firstChild(); child;
213 child = child->nextSibling()) 213 child = child->nextSibling())
214 SVGPaintContext::paintSubtree(pictureBuilder.context(), child); 214 SVGPaintContext::paintSubtree(pictureBuilder.context(), child);
215 } 215 }
216 216
217 return pictureBuilder.endRecording(); 217 return pictureBuilder.endRecording();
218 } 218 }
219 219
220 } // namespace blink 220 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698