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

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: More fixes - things build fine at this point. Created 3 years, 8 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 const IntSize& size) { 105 const IntSize& size) {
106 if (size.isEmpty()) 106 if (size.isEmpty())
107 return nullptr; 107 return nullptr;
108 108
109 if (m_isCacheable) { 109 if (m_isCacheable) {
110 if (!clients().contains(&layoutObject)) 110 if (!clients().contains(&layoutObject))
111 return nullptr; 111 return nullptr;
112 112
113 // Need to look up our size. Create a string of width*height to use as a 113 // Need to look up our size. Create a string of width*height to use as a
114 // hash key. 114 // hash key.
115 Image* result = getImage(&layoutObject, size); 115 Image* result = this->CSSImageGeneratorValue::GetImage(&layout_object, size) ;
116 if (result) 116 if (result)
117 return result; 117 return result;
118 } 118 }
119 119
120 // We need to create an image. 120 // We need to create an image.
121 RefPtr<Gradient> gradient; 121 RefPtr<Gradient> gradient;
122 122
123 const ComputedStyle* rootStyle = 123 const ComputedStyle* rootStyle =
124 layoutObject.document().documentElement()->computedStyle(); 124 layoutObject.document().documentElement()->computedStyle();
125 CSSToLengthConversionData conversionData( 125 CSSToLengthConversionData conversionData(
(...skipping 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after
1520 dataEquivalent(m_fromAngle, other.m_fromAngle) && 1520 dataEquivalent(m_fromAngle, other.m_fromAngle) &&
1521 m_stops == other.m_stops; 1521 m_stops == other.m_stops;
1522 } 1522 }
1523 1523
1524 DEFINE_TRACE_AFTER_DISPATCH(CSSConicGradientValue) { 1524 DEFINE_TRACE_AFTER_DISPATCH(CSSConicGradientValue) {
1525 visitor->trace(m_fromAngle); 1525 visitor->trace(m_fromAngle);
1526 CSSGradientValue::traceAfterDispatch(visitor); 1526 CSSGradientValue::traceAfterDispatch(visitor);
1527 } 1527 }
1528 1528
1529 } // namespace blink 1529 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698