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

Side by Side Diff: Source/core/css/CSSImageGeneratorValue.cpp

Issue 942813002: Oilpan: prefer ENABLE(OILPAN). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/animation/InterpolationEffect.cpp ('k') | Source/platform/heap/HeapTest.cpp » ('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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 #endif 94 #endif
95 } 95 }
96 96
97 Image* CSSImageGeneratorValue::getImage(LayoutObject* renderer, const IntSize& s ize) 97 Image* CSSImageGeneratorValue::getImage(LayoutObject* renderer, const IntSize& s ize)
98 { 98 {
99 LayoutObjectSizeCountMap::iterator it = m_clients.find(renderer); 99 LayoutObjectSizeCountMap::iterator it = m_clients.find(renderer);
100 if (it != m_clients.end()) { 100 if (it != m_clients.end()) {
101 SizeAndCount& sizeCount = it->value; 101 SizeAndCount& sizeCount = it->value;
102 IntSize oldSize = sizeCount.size; 102 IntSize oldSize = sizeCount.size;
103 if (oldSize != size) { 103 if (oldSize != size) {
104 #if !ENABLE_OILPAN 104 RefPtrWillBeRawPtr<CSSImageGeneratorValue> protect(this);
sof 2015/02/20 12:20:49 The #if here is from https://codereview.chromi
105 RefPtr<CSSImageGeneratorValue> protect(this);
106 #endif
107 removeClient(renderer); 105 removeClient(renderer);
108 addClient(renderer, size); 106 addClient(renderer, size);
109 } 107 }
110 } 108 }
111 109
112 // Don't generate an image for empty sizes. 110 // Don't generate an image for empty sizes.
113 if (size.isEmpty()) 111 if (size.isEmpty())
114 return 0; 112 return 0;
115 113
116 // Look up the image in our cache. 114 // Look up the image in our cache.
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 break; 219 break;
222 case RadialGradientClass: 220 case RadialGradientClass:
223 toCSSRadialGradientValue(this)->loadSubimages(fetcher); 221 toCSSRadialGradientValue(this)->loadSubimages(fetcher);
224 break; 222 break;
225 default: 223 default:
226 ASSERT_NOT_REACHED(); 224 ASSERT_NOT_REACHED();
227 } 225 }
228 } 226 }
229 227
230 } // namespace blink 228 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/animation/InterpolationEffect.cpp ('k') | Source/platform/heap/HeapTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698