#include "base/allocator/allocator_extension.h"
#include "content/public/renderer/render_thread.h"
#include "third_party/WebKit/public/web/WebCache.h"
-#include "third_party/WebKit/public/web/WebCrossOriginPreflightResultCache.h"
-#include "third_party/WebKit/public/web/WebFontCache.h"
#include "third_party/sqlite/sqlite3.h"
#include "v8/include/v8.h"
#include "renderer/content_renderer_client_efl.h"
+// XXX: config.h needs to be included before internal blink headers.
+// XXX2: It'd be great if we did not include internal blibk headers.
+#include "third_party/WebKit/Source/config.h"
+#include "third_party/WebKit/Source/platform/fonts/FontCache.h"
+
+
using blink::WebCache;
-using blink::WebFontCache;
-using blink::WebCrossOriginPreflightResultCache;
using content::RenderThread;
bool RenderProcessObserverEfl::OnControlMessageReceived(const IPC::Message& message)
// freed).
OnClearCache();
// Clear the font/glyph cache.
- WebFontCache::clear();
- // Clear the Cross-Origin Preflight cache.
- blink::WebCrossOriginPreflightResultCache::clear();
+ WebCore::FontCache::fontCache()->invalidate();
// TODO(pk): currently web process not linking sqlite. when used this should enable
// Release all freeable memory from the SQLite process-global page cache (a
// low-level object which backs the Connection-specific page caches).
#include "third_party/WebKit/public/web/WebDocument.h"
#include "third_party/WebKit/public/web/WebElement.h"
#include "third_party/WebKit/public/web/WebFrame.h"
-#include "third_party/WebKit/public/web/WebFontCache.h"
#include "third_party/WebKit/public/web/WebFrame.h"
#include "third_party/WebKit/public/web/WebHitTestResult.h"
#include "third_party/WebKit/public/web/WebPageSerializer.h"
#include "third_party/WebKit/public/web/WebView.h"
#include "third_party/WebKit/public/web/WebNodeList.h"
+// XXX: config.h needs to be included before internal blink headers.
+// It'd be great if we did not include not internal blibk headers.
+#include "third_party/WebKit/Source/config.h"
+#include "third_party/WebKit/Source/platform/fonts/FontCache.h"
+
namespace {
bool GetGRBAValuesFromString(const std::string& input, int* r, int* g, int* b, int* a)
int context = EWK_HIT_TEST_RESULT_CONTEXT_DOCUMENT;
if (!web_hit_test.absoluteLinkURL().isEmpty())
- context |= EWK_HIT_TEST_RESULT_CONTEXT_LINK;
+ context |= TW_HIT_TEST_RESULT_CONTEXT_LINK;
if (!web_hit_test.absoluteImageURL().isEmpty())
- context |= EWK_HIT_TEST_RESULT_CONTEXT_IMAGE;
+ context |= TW_HIT_TEST_RESULT_CONTEXT_IMAGE;
if (!web_hit_test.absoluteMediaURL().isEmpty())
- context |= EWK_HIT_TEST_RESULT_CONTEXT_MEDIA;;
+ context |= TW_HIT_TEST_RESULT_CONTEXT_MEDIA;;
if (web_hit_test.isSelected())
context |= EWK_HIT_TEST_RESULT_CONTEXT_SELECTION;
if (web_hit_test.isContentEditable())
void RenderViewObserverEfl::OnUseSettingsFont()
{
- if (!blink::WebFontCache::clearIfContainsTizenSystemFont())
- return;
+ WebCore::FontCache::fontCache()->invalidate();
blink::WebView* view = render_view()->GetWebView();
if (view)