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

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

Issue 1482683002: Trial: build trunk with Oilpan everywhere. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: have RemoteDOMWindow keep a weak ref back to its RemoteFrame Created 5 years 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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights reserv ed.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 12 matching lines...) Expand all
23 23
24 #include "core/css/CSSCalculationValue.h" 24 #include "core/css/CSSCalculationValue.h"
25 #include "core/css/CSSHelper.h" 25 #include "core/css/CSSHelper.h"
26 #include "core/css/CSSMarkup.h" 26 #include "core/css/CSSMarkup.h"
27 #include "core/css/CSSToLengthConversionData.h" 27 #include "core/css/CSSToLengthConversionData.h"
28 #include "core/css/StyleSheetContents.h" 28 #include "core/css/StyleSheetContents.h"
29 #include "core/dom/Node.h" 29 #include "core/dom/Node.h"
30 #include "core/style/ComputedStyle.h" 30 #include "core/style/ComputedStyle.h"
31 #include "platform/LayoutUnit.h" 31 #include "platform/LayoutUnit.h"
32 #include "platform/fonts/FontMetrics.h" 32 #include "platform/fonts/FontMetrics.h"
33 #include "wtf/LeakAnnotations.h"
33 #include "wtf/StdLibExtras.h" 34 #include "wtf/StdLibExtras.h"
34 #include "wtf/ThreadSpecific.h" 35 #include "wtf/ThreadSpecific.h"
35 #include "wtf/Threading.h" 36 #include "wtf/Threading.h"
36 #include "wtf/text/StringBuffer.h" 37 #include "wtf/text/StringBuffer.h"
37 #include "wtf/text/StringBuilder.h" 38 #include "wtf/text/StringBuilder.h"
38 39
39 using namespace WTF; 40 using namespace WTF;
40 41
41 namespace blink { 42 namespace blink {
42 43
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 case CSSValueCurrentcolor: 154 case CSSValueCurrentcolor:
154 return true; 155 return true;
155 default: 156 default:
156 return false; 157 return false;
157 } 158 }
158 } 159 }
159 160
160 using CSSTextCache = WillBePersistentHeapHashMap<RawPtrWillBeWeakMember<const CS SPrimitiveValue>, String>; 161 using CSSTextCache = WillBePersistentHeapHashMap<RawPtrWillBeWeakMember<const CS SPrimitiveValue>, String>;
161 static CSSTextCache& cssTextCache() 162 static CSSTextCache& cssTextCache()
162 { 163 {
164 WTF_ANNOTATE_SCOPED_MEMORY_LEAK;
163 AtomicallyInitializedStaticReference(ThreadSpecific<CSSTextCache>, cache, ne w ThreadSpecific<CSSTextCache>()); 165 AtomicallyInitializedStaticReference(ThreadSpecific<CSSTextCache>, cache, ne w ThreadSpecific<CSSTextCache>());
164 return *cache; 166 return *cache;
165 } 167 }
166 168
167 CSSPrimitiveValue::UnitType CSSPrimitiveValue::typeWithCalcResolved() const 169 CSSPrimitiveValue::UnitType CSSPrimitiveValue::typeWithCalcResolved() const
168 { 170 {
169 if (type() != UnitType::Calc) 171 if (type() != UnitType::Calc)
170 return type(); 172 return type();
171 173
172 switch (m_value.calc->category()) { 174 switch (m_value.calc->category()) {
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 visitor->trace(m_value.calc); 845 visitor->trace(m_value.calc);
844 break; 846 break;
845 default: 847 default:
846 break; 848 break;
847 } 849 }
848 #endif 850 #endif
849 CSSValue::traceAfterDispatch(visitor); 851 CSSValue::traceAfterDispatch(visitor);
850 } 852 }
851 853
852 } // namespace blink 854 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698