summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-23 23:49:13 +0000
committerdarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-23 23:49:13 +0000
commit295acf47bcd8e00d9864b0a4763b95f69fdba1d9 (patch)
tree124b1e503df8033de8ab45616b5bc6823f45de6d
parent8d13c8aa8cc2666d20ccbdd949286722310774c7 (diff)
downloadchromium_src-295acf47bcd8e00d9864b0a4763b95f69fdba1d9.zip
chromium_src-295acf47bcd8e00d9864b0a4763b95f69fdba1d9.tar.gz
chromium_src-295acf47bcd8e00d9864b0a4763b95f69fdba1d9.tar.bz2
Kill FontCacheMacPending.cpp
R=dglazkov Review URL: http://codereview.chromium.org/16472 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7459 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--DEPS2
-rw-r--r--webkit/port/platform/graphics/mac/FontCacheMacPending.cpp84
-rw-r--r--webkit/webkit.xcodeproj/project.pbxproj4
3 files changed, 1 insertions, 89 deletions
diff --git a/DEPS b/DEPS
index 7ce0f8a..a4846ac 100644
--- a/DEPS
+++ b/DEPS
@@ -12,7 +12,7 @@ deps = {
"http://googletest.googlecode.com/svn/trunk@63",
"src/third_party/WebKit":
- "/trunk/deps/third_party/WebKit@7454",
+ "/trunk/deps/third_party/WebKit@7457",
"src/third_party/icu38":
"/trunk/deps/third_party/icu38@7121",
diff --git a/webkit/port/platform/graphics/mac/FontCacheMacPending.cpp b/webkit/port/platform/graphics/mac/FontCacheMacPending.cpp
deleted file mode 100644
index c368827..0000000
--- a/webkit/port/platform/graphics/mac/FontCacheMacPending.cpp
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
- * its contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-#include "AtomicString.h"
-#include "ChromiumBridge.h"
-#include "FontCache.h"
-#include "FontDescription.h"
-
-//
-// This file contains implementations of methods in the "pending" version
-// of FontCache. These implementations are derrived from Apple code to avoid
-// having to fork the entire FontCacheMac.mm file just to add these additional
-// methods, hence its copyright at the top of the file.
-//
-
-namespace WebCore {
-
-// TODO(jungshik): This may not be the best place to put this function. See
-// TODO in pending/FontCache.h.
-AtomicString FontCache::getGenericFontForScript(UScriptCode script, const FontDescription& description)
-{
- if (ChromiumBridge::layoutTestMode())
- return emptyAtom;
- // TODO(pinkerton) -- flesh this out with some script handling code
- return emptyAtom;
-}
-
-// default implementation taken from
-// WebCore/port/platform/graphics/FontCache.cpp. Windows makes lots of changes
-// due to their font representations, we can probably stick with the original
-// fallbacks for Mac.
-const AtomicString& FontCache::alternateFamilyName(const AtomicString& familyName)
-{
- // Alias Courier <-> Courier New
- static AtomicString courier("Courier"), courierNew("Courier New");
- if (equalIgnoringCase(familyName, courier))
- return courierNew;
- if (equalIgnoringCase(familyName, courierNew))
- return courier;
-
- // Alias Times and Times New Roman.
- static AtomicString times("Times"), timesNewRoman("Times New Roman");
- if (equalIgnoringCase(familyName, times))
- return timesNewRoman;
- if (equalIgnoringCase(familyName, timesNewRoman))
- return times;
-
- // Alias Arial and Helvetica
- static AtomicString arial("Arial"), helvetica("Helvetica");
- if (equalIgnoringCase(familyName, arial))
- return helvetica;
- if (equalIgnoringCase(familyName, helvetica))
- return arial;
-
- return emptyAtom;
-}
-
-} // namespace WebCore
diff --git a/webkit/webkit.xcodeproj/project.pbxproj b/webkit/webkit.xcodeproj/project.pbxproj
index 40057d1..2fd3fa1 100644
--- a/webkit/webkit.xcodeproj/project.pbxproj
+++ b/webkit/webkit.xcodeproj/project.pbxproj
@@ -105,7 +105,6 @@
4D64AC520EEE271C0021761F /* CSSSelectorList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A7218BEB0EEDF5BD000FC021 /* CSSSelectorList.cpp */; };
4D7B071F0E9DAE56009A6919 /* GraphicsContextStub.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4D7B071E0E9DAE56009A6919 /* GraphicsContextStub.cpp */; };
4DB043A40EB1577900A5633C /* webcursor.cc in Sources */ = {isa = PBXBuildFile; fileRef = 825405300D92E3DA0006B936 /* webcursor.cc */; };
- 4DB044260EB161E800A5633C /* FontCacheMacPending.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E4E4CA190E80208A009A687C /* FontCacheMacPending.cpp */; };
4DB299C50EA4DD1E007EA4CF /* V8WebKitAnimationEvent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4DB299BD0EA4DD1E007EA4CF /* V8WebKitAnimationEvent.cpp */; };
4DB299C60EA4DD1E007EA4CF /* V8WebKitCSSTransformValue.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4DB299BF0EA4DD1E007EA4CF /* V8WebKitCSSTransformValue.cpp */; };
4DB299C70EA4DD1E007EA4CF /* V8WebKitTransitionEvent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4DB299C10EA4DD1E007EA4CF /* V8WebKitTransitionEvent.cpp */; };
@@ -4276,7 +4275,6 @@
E4A238C50E3FA19C002BDE14 /* image_decoder.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = image_decoder.cc; sourceTree = "<group>"; };
E4A238C60E3FA19C002BDE14 /* image_decoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = image_decoder.h; sourceTree = "<group>"; };
E4E4C7F80E781B5B009A687C /* webplugin_impl_mac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = webplugin_impl_mac.mm; sourceTree = "<group>"; };
- E4E4CA190E80208A009A687C /* FontCacheMacPending.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FontCacheMacPending.cpp; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -4469,7 +4467,6 @@
4DB044090EB161B600A5633C /* mac */ = {
isa = PBXGroup;
children = (
- E4E4CA190E80208A009A687C /* FontCacheMacPending.cpp */,
4D7B071E0E9DAE56009A6919 /* GraphicsContextStub.cpp */,
);
path = mac;
@@ -9411,7 +9408,6 @@
files = (
E45627EA0E2694B8005E4685 /* BMPImageDecoder.cpp in Sources */,
E45627E90E2694B8005E4685 /* BMPImageReader.cpp in Sources */,
- 4DB044260EB161E800A5633C /* FontCacheMacPending.cpp in Sources */,
7B2B0A5F0E3143EC00D4C6B7 /* GIFImageDecoder.cpp in Sources */,
7B2B0A610E3143EC00D4C6B7 /* GIFImageReader.cpp in Sources */,
4D7B071F0E9DAE56009A6919 /* GraphicsContextStub.cpp in Sources */,