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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp

Issue 2657443005: Migrate WTF::HashSet::add() to ::insert() [part 1 of N] (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) 2004 Zack Rusin <zack@kde.org> 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
4 * All rights reserved. 4 * All rights reserved.
5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
7 * Copyright (C) 2011 Sencha, Inc. All rights reserved. 7 * Copyright (C) 2011 Sencha, Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public 10 * modify it under the terms of the GNU Lesser General Public
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 } 194 }
195 195
196 inline CSSPrimitiveValue* zoomAdjustedPixelValue(double value, 196 inline CSSPrimitiveValue* zoomAdjustedPixelValue(double value,
197 const ComputedStyle& style) { 197 const ComputedStyle& style) {
198 return CSSPrimitiveValue::create(adjustFloatForAbsoluteZoom(value, style), 198 return CSSPrimitiveValue::create(adjustFloatForAbsoluteZoom(value, style),
199 CSSPrimitiveValue::UnitType::Pixels); 199 CSSPrimitiveValue::UnitType::Pixels);
200 } 200 }
201 201
202 void logUnimplementedPropertyID(CSSPropertyID propertyID) { 202 void logUnimplementedPropertyID(CSSPropertyID propertyID) {
203 DEFINE_STATIC_LOCAL(HashSet<CSSPropertyID>, propertyIDSet, ()); 203 DEFINE_STATIC_LOCAL(HashSet<CSSPropertyID>, propertyIDSet, ());
204 if (!propertyIDSet.add(propertyID).isNewEntry) 204 if (!propertyIDSet.insert(propertyID).isNewEntry)
205 return; 205 return;
206 206
207 DLOG(ERROR) << "Blink does not yet implement getComputedStyle for '" 207 DLOG(ERROR) << "Blink does not yet implement getComputedStyle for '"
208 << getPropertyName(propertyID) << "'."; 208 << getPropertyName(propertyID) << "'.";
209 } 209 }
210 210
211 bool isLayoutDependent(CSSPropertyID propertyID, 211 bool isLayoutDependent(CSSPropertyID propertyID,
212 const ComputedStyle* style, 212 const ComputedStyle* style,
213 LayoutObject* layoutObject) { 213 LayoutObject* layoutObject) {
214 if (!layoutObject) 214 if (!layoutObject)
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 "These styles are computed, and therefore the '" + 562 "These styles are computed, and therefore the '" +
563 getPropertyNameString(id) + "' property is read-only."); 563 getPropertyNameString(id) + "' property is read-only.");
564 } 564 }
565 565
566 DEFINE_TRACE(CSSComputedStyleDeclaration) { 566 DEFINE_TRACE(CSSComputedStyleDeclaration) {
567 visitor->trace(m_node); 567 visitor->trace(m_node);
568 CSSStyleDeclaration::trace(visitor); 568 CSSStyleDeclaration::trace(visitor);
569 } 569 }
570 570
571 } // namespace blink 571 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp ('k') | third_party/WebKit/Source/core/css/CSSFontSelector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698