Changeset 173321 in webkit
- Timestamp:
- Sep 5, 2014, 11:57:06 AM (11 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r173320 r173321 1 2014-09-05 Simon Fraser <simon.fraser@apple.com> 2 3 Remove some PLATFORM(IOS) code in Color.h/cpp 4 https://bugs.webkit.org/show_bug.cgi?id=136582 5 6 Reviewed by Dan Bates. 7 8 Remove Color::tap which is unused, and remove createCGColorWithDeviceWhite() 9 which was only called in one file in WebKit. 10 11 * WebCore.exp.in: 12 * platform/graphics/Color.h: 13 * platform/graphics/cg/ColorCG.cpp: 14 (WebCore::createCGColorWithDeviceWhite): Deleted. 15 1 16 2014-09-05 Beth Dakin <bdakin@apple.com> 2 17 -
trunk/Source/WebCore/WebCore.exp.in
r173276 r173321 2812 2812 #endif 2813 2813 2814 #if PLATFORM(IOS) && defined(__LP64__) && __LP64__2815 __ZN7WebCore28createCGColorWithDeviceWhiteEdd2816 #endif2817 2818 #if PLATFORM(IOS) && !(defined(__LP64__) && __LP64__)2819 __ZN7WebCore28createCGColorWithDeviceWhiteEff2820 #endif2821 2822 2814 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 2823 2815 __ZN7WebCore15ProtectionSpace28encodingRequiresPlatformDataEP20NSURLProtectionSpace -
trunk/Source/WebCore/platform/graphics/Color.h
r172849 r173321 154 154 155 155 #if PLATFORM(IOS) 156 static const RGBA32 tap = 0x4D1A1A1A;157 158 156 // FIXME: This color shouldn't be iOS-specific. Once we fix up its usage in InlineTextBox::paintCompositionBackground() 159 157 // we should move it outside the PLATFORM(IOS)-guard. See <https://bugs.webkit.org/show_bug.cgi?id=126296>. … … 190 188 #if USE(CG) 191 189 WEBCORE_EXPORT CGColorRef cachedCGColor(const Color&, ColorSpace); 192 #if PLATFORM(IOS)193 WEBCORE_EXPORT CGColorRef createCGColorWithDeviceWhite(CGFloat white, CGFloat alpha);194 #endif // PLATFORM(IOS)195 190 #endif 196 191 -
trunk/Source/WebCore/platform/graphics/cg/ColorCG.cpp
r166005 r173321 43 43 44 44 #if PLATFORM(IOS) 45 CGColorRef createCGColorWithDeviceWhite(CGFloat white, CGFloat alpha)46 {47 static CGColorSpaceRef graySpace = CGColorSpaceCreateDeviceGray();48 const CGFloat components[] = { white, alpha };49 return CGColorCreate(graySpace, components);50 }51 52 45 static CGColorRef createCGColorWithDeviceRGBA(CGColorRef sourceColor) 53 46 { -
trunk/Source/WebKit/ios/ChangeLog
r173265 r173321 1 2014-09-05 Simon Fraser <simon.fraser@apple.com> 2 3 Remove some PLATFORM(IOS) code in Color.h/cpp 4 https://bugs.webkit.org/show_bug.cgi?id=136582 5 6 Reviewed by Dan Bates. 7 8 createCGColorWithDeviceWhite() is only used here so make it a local static function. 9 10 * WebView/WebPDFViewIOS.mm: 11 (createCGColorWithDeviceWhite): 12 1 13 2014-09-04 Pratik Solanki <psolanki@apple.com> 2 14 -
trunk/Source/WebKit/ios/WebView/WebPDFViewIOS.mm
r173150 r173321 61 61 static const float PAGE_WIDTH_INSET = 4.0 * 2.0; 62 62 static const float PAGE_HEIGHT_INSET = 4.0 * 2.0; 63 64 static CGColorRef createCGColorWithDeviceWhite(CGFloat white, CGFloat alpha) 65 { 66 static CGColorSpaceRef graySpace = CGColorSpaceCreateDeviceGray(); 67 const CGFloat components[] = { white, alpha }; 68 return CGColorCreate(graySpace, components); 69 } 63 70 64 71 @implementation WebPDFView
Note:
See TracChangeset
for help on using the changeset viewer.