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

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

Issue 2329463004: ABANDONED CL: Changes needed to make things compile after running rewrite_to_chrome_style tool. (Closed)
Patch Set: Rebasing the fixes... 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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2015 Google Inc. All rights reserved. 3 * Copyright (C) 2015 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 if (size.isEmpty()) 73 if (size.isEmpty())
74 return nullptr; 74 return nullptr;
75 75
76 bool cacheable = isCacheable(); 76 bool cacheable = isCacheable();
77 if (cacheable) { 77 if (cacheable) {
78 if (!clients().contains(&layoutObject)) 78 if (!clients().contains(&layoutObject))
79 return nullptr; 79 return nullptr;
80 80
81 // Need to look up our size. Create a string of width*height to use as a 81 // Need to look up our size. Create a string of width*height to use as a
82 // hash key. 82 // hash key.
83 Image* result = getImage(&layoutObject, size); 83 Image* result = this->CSSImageGeneratorValue::GetImage(&layout_object, size) ;
84 if (result) 84 if (result)
85 return result; 85 return result;
86 } 86 }
87 87
88 // We need to create an image. 88 // We need to create an image.
89 RefPtr<Gradient> gradient; 89 RefPtr<Gradient> gradient;
90 90
91 const ComputedStyle* rootStyle = 91 const ComputedStyle* rootStyle =
92 layoutObject.document().documentElement()->computedStyle(); 92 layoutObject.document().documentElement()->computedStyle();
93 CSSToLengthConversionData conversionData( 93 CSSToLengthConversionData conversionData(
(...skipping 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after
1317 visitor->trace(m_firstRadius); 1317 visitor->trace(m_firstRadius);
1318 visitor->trace(m_secondRadius); 1318 visitor->trace(m_secondRadius);
1319 visitor->trace(m_shape); 1319 visitor->trace(m_shape);
1320 visitor->trace(m_sizingBehavior); 1320 visitor->trace(m_sizingBehavior);
1321 visitor->trace(m_endHorizontalSize); 1321 visitor->trace(m_endHorizontalSize);
1322 visitor->trace(m_endVerticalSize); 1322 visitor->trace(m_endVerticalSize);
1323 CSSGradientValue::traceAfterDispatch(visitor); 1323 CSSGradientValue::traceAfterDispatch(visitor);
1324 } 1324 }
1325 1325
1326 } // namespace blink 1326 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698