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

Side by Side Diff: sky/engine/core/css/CSSImageGeneratorValue.cpp

Issue 686783002: Remove almost all of Oilpan (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/bindings/core/v8/v8.gypi ('k') | sky/engine/core/css/CSSValue.h » ('j') | 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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 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 27 matching lines...) Expand all
38 { 38 {
39 } 39 }
40 40
41 CSSImageGeneratorValue::~CSSImageGeneratorValue() 41 CSSImageGeneratorValue::~CSSImageGeneratorValue()
42 { 42 {
43 } 43 }
44 44
45 void CSSImageGeneratorValue::addClient(RenderObject* renderer, const IntSize& si ze) 45 void CSSImageGeneratorValue::addClient(RenderObject* renderer, const IntSize& si ze)
46 { 46 {
47 ASSERT(renderer); 47 ASSERT(renderer);
48 #if !ENABLE(OILPAN)
49 ref(); 48 ref();
50 #else
51 if (m_clients.isEmpty()) {
52 ASSERT(!m_keepAlive);
53 m_keepAlive = adoptPtr(new Persistent<CSSImageGeneratorValue>(this));
54 }
55 #endif
56 49
57 if (!size.isEmpty()) 50 if (!size.isEmpty())
58 m_sizes.add(size); 51 m_sizes.add(size);
59 52
60 RenderObjectSizeCountMap::iterator it = m_clients.find(renderer); 53 RenderObjectSizeCountMap::iterator it = m_clients.find(renderer);
61 if (it == m_clients.end()) 54 if (it == m_clients.end())
62 m_clients.add(renderer, SizeAndCount(size, 1)); 55 m_clients.add(renderer, SizeAndCount(size, 1));
63 else { 56 else {
64 SizeAndCount& sizeCount = it->value; 57 SizeAndCount& sizeCount = it->value;
65 ++sizeCount.count; 58 ++sizeCount.count;
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 break; 214 break;
222 case RadialGradientClass: 215 case RadialGradientClass:
223 toCSSRadialGradientValue(this)->loadSubimages(fetcher); 216 toCSSRadialGradientValue(this)->loadSubimages(fetcher);
224 break; 217 break;
225 default: 218 default:
226 ASSERT_NOT_REACHED(); 219 ASSERT_NOT_REACHED();
227 } 220 }
228 } 221 }
229 222
230 } // namespace blink 223 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/bindings/core/v8/v8.gypi ('k') | sky/engine/core/css/CSSValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698