diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-07 19:31:57 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-07 19:31:57 +0000 |
commit | cf741e7c8bc8a31b74b778a06ab70ecd3ce1eee4 (patch) | |
tree | 558b8da09b9836f1a9c6d0cbd17060d5d3bdc129 /webkit/glue/webkit_glue.cc | |
parent | d31de42910f5c64670faba7624ddffa6505b22b2 (diff) | |
download | chromium_src-cf741e7c8bc8a31b74b778a06ab70ecd3ce1eee4.zip chromium_src-cf741e7c8bc8a31b74b778a06ab70ecd3ce1eee4.tar.gz chromium_src-cf741e7c8bc8a31b74b778a06ab70ecd3ce1eee4.tar.bz2 |
Eliminate last bits of WebCore usage in webkit_glue.cc.
R=abarth
BUG=28065
TEST=none
Review URL: http://codereview.chromium.org/525061
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35720 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webkit_glue.cc')
-rw-r--r-- | webkit/glue/webkit_glue.cc | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/webkit/glue/webkit_glue.cc b/webkit/glue/webkit_glue.cc index 60898ff..5a35903 100644 --- a/webkit/glue/webkit_glue.cc +++ b/webkit/glue/webkit_glue.cc @@ -2,11 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// TODO(darin): Eliminate these WebCore includes -#include "config.h" -#include "GlyphPageTreeNode.h" -#undef LOG - #include "webkit/glue/webkit_glue.h" #if defined(OS_WIN) @@ -31,8 +26,11 @@ #include "third_party/WebKit/WebKit/chromium/public/WebData.h" #include "third_party/WebKit/WebKit/chromium/public/WebDocument.h" #include "third_party/WebKit/WebKit/chromium/public/WebElement.h" +#include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" +#include "third_party/WebKit/WebKit/chromium/public/WebGlyphCache.h" #include "third_party/WebKit/WebKit/chromium/public/WebHistoryItem.h" #include "third_party/WebKit/WebKit/chromium/public/WebImage.h" +#include "third_party/WebKit/WebKit/chromium/public/WebKit.h" #include "third_party/WebKit/WebKit/chromium/public/WebSize.h" #include "third_party/WebKit/WebKit/chromium/public/WebString.h" #include "third_party/WebKit/WebKit/chromium/public/WebVector.h" @@ -40,9 +38,9 @@ #if defined(OS_WIN) #include "third_party/WebKit/WebKit/chromium/public/win/WebInputEventFactory.h" #endif -#include "third_party/WebKit/WebKit/chromium/src/WebFrameImpl.h" #include "webkit/glue/glue_serialize.h" #include "webkit/glue/glue_util.h" +#include "v8/include/v8.h" #include "webkit_version.h" // Generated @@ -50,7 +48,7 @@ using WebKit::WebCanvas; using WebKit::WebData; using WebKit::WebElement; using WebKit::WebFrame; -using WebKit::WebFrameImpl; +using WebKit::WebGlyphCache; using WebKit::WebHistoryItem; using WebKit::WebImage; using WebKit::WebSize; @@ -85,8 +83,7 @@ void SetJavaScriptFlags(const std::wstring& str) { } void EnableWebCoreNotImplementedLogging() { - // TODO(darin): Add a WebKit API to allow this to be set. - WebCore::LogNotYetImplemented.state = WTFLogChannelOn; + WebKit::enableLogChannel("NotYetImplemented"); } std::wstring DumpDocumentText(WebFrame* web_frame) { @@ -249,12 +246,10 @@ void DumpLeakedObject(const char* file, int line, const char* object, int count) void CheckForLeaks() { #ifndef NDEBUG -#if 0 - int count = WebFrameImpl::liveObjectCount(); + int count = WebFrame::instanceCount(); if (count) DumpLeakedObject(__FILE__, __LINE__, "WebFrame", count); #endif -#endif } bool DecodeImage(const std::string& image_data, SkBitmap* image) { @@ -507,8 +502,7 @@ WebCanvas* ToWebCanvas(skia::PlatformCanvas* canvas) { } int GetGlyphPageCount() { - // TODO(darin): Add a WebKit API to expose this counter. - return WebCore::GlyphPageTreeNode::treeGlyphPageCount(); + return WebGlyphCache::pageCount(); } bool g_enable_media_cache = false; |