summaryrefslogtreecommitdiffstats
path: root/webkit/port
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-24 22:59:20 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-24 22:59:20 +0000
commitedfa71e63db4db57ee6fafb237e4331cb631824b (patch)
tree3513578065ed7e3d486b6b6d3c2119a0ce952c05 /webkit/port
parent62ca321dd5cd95b7e4fc9de922c2ca0703971361 (diff)
downloadchromium_src-edfa71e63db4db57ee6fafb237e4331cb631824b.zip
chromium_src-edfa71e63db4db57ee6fafb237e4331cb631824b.tar.gz
chromium_src-edfa71e63db4db57ee6fafb237e4331cb631824b.tar.bz2
First-party side of change to remove more link stubs.
Review URL: http://codereview.chromium.org/7988 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3958 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port')
-rw-r--r--webkit/port/platform/chromium/TemporaryLinkStubs.cpp10
-rw-r--r--webkit/port/platform/graphics/ColorSkia.cpp6
-rw-r--r--webkit/port/platform/graphics/GraphicsContextSkia.cpp3
3 files changed, 8 insertions, 11 deletions
diff --git a/webkit/port/platform/chromium/TemporaryLinkStubs.cpp b/webkit/port/platform/chromium/TemporaryLinkStubs.cpp
index 5ac7c3a..810d234 100644
--- a/webkit/port/platform/chromium/TemporaryLinkStubs.cpp
+++ b/webkit/port/platform/chromium/TemporaryLinkStubs.cpp
@@ -29,7 +29,6 @@
#define WIN32_COMPILE_HACK
MSVC_PUSH_WARNING_LEVEL(0);
-#include "Color.h"
#include "SSLKeyGenerator.h"
#include "KURL.h"
#include "NotImplemented.h"
@@ -38,9 +37,6 @@ MSVC_POP_WARNING();
using namespace WebCore;
-Color WebCore::focusRingColor() { notImplemented(); return 0xFF7DADD9; }
-void WebCore::setFocusRingColorChangeFunction(void (*)()) { notImplemented(); }
-
String WebCore::signedPublicKeyAndChallengeString(unsigned, const String&, const KURL&) { notImplemented(); return String(); }
String KURL::fileSystemPath() const { notImplemented(); return String(); }
@@ -54,9 +50,3 @@ PassRefPtr<SharedBuffer> SharedBuffer::createWithContentsOfFile(const String& fi
namespace WTF {
void scheduleDispatchFunctionsOnMainThread() { notImplemented(); }
}
-
-#if USE(JSC)
-#include "EventLoop.h"
-
-void EventLoop::cycle() { notImplemented(); }
-#endif
diff --git a/webkit/port/platform/graphics/ColorSkia.cpp b/webkit/port/platform/graphics/ColorSkia.cpp
index 23c5eb0..d89fbed 100644
--- a/webkit/port/platform/graphics/ColorSkia.cpp
+++ b/webkit/port/platform/graphics/ColorSkia.cpp
@@ -34,4 +34,10 @@ namespace WebCore {
COMPILE_ASSERT(SK_ColorBLACK == Color::black, SkColorAndColorAreLaidOutTheSame);
+Color WebCore::focusRingColor()
+{
+ static Color focusRingColor(229, 151, 0, 255);
+ return focusRingColor;
+}
+
} // namespace WebCore
diff --git a/webkit/port/platform/graphics/GraphicsContextSkia.cpp b/webkit/port/platform/graphics/GraphicsContextSkia.cpp
index 8547756..1dd027a 100644
--- a/webkit/port/platform/graphics/GraphicsContextSkia.cpp
+++ b/webkit/port/platform/graphics/GraphicsContextSkia.cpp
@@ -24,6 +24,7 @@
#include "Assertions.h"
#include "AffineTransform.h"
+#include "Color.h"
#include "FloatRect.h"
#include "Gradient.h"
#include "IntRect.h"
@@ -874,7 +875,7 @@ void GraphicsContext::drawFocusRing(const Color& color)
paint.setAntiAlias(true);
paint.setStyle(SkPaint::kStroke_Style);
- paint.setARGB(255, 229, 151, 0);
+ paint.setColor(focusRingColor().rgb());
paint.setStrokeWidth(exterior_offset * 2);
paint.setPathEffect(new SkCornerPathEffect(exterior_offset * 2))->unref();
exterior_region.getBoundaryPath(&path);