Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: webkit/glue/webview_impl.cc

Issue 100012: Disable web-fonts, Chrome part.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/branches/172/src/
Patch Set: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webkit/glue/webpreferences.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2007 Google Inc. All Rights Reserved. 2 * Copyright 2007 Google Inc. All Rights Reserved.
3 * 3 *
4 * Portions Copyright (C) 2006 Apple Computer, Inc. All rights reserved. 4 * Portions Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
5 * 5 *
6 * ***** BEGIN LICENSE BLOCK ***** 6 * ***** BEGIN LICENSE BLOCK *****
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
(...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after
1413 settings->setTextAreasAreResizable(preferences.text_areas_are_resizable); 1413 settings->setTextAreasAreResizable(preferences.text_areas_are_resizable);
1414 settings->setAllowScriptsToCloseWindows( 1414 settings->setAllowScriptsToCloseWindows(
1415 preferences.allow_scripts_to_close_windows); 1415 preferences.allow_scripts_to_close_windows);
1416 if (preferences.user_style_sheet_enabled) { 1416 if (preferences.user_style_sheet_enabled) {
1417 settings->setUserStyleSheetLocation(webkit_glue::GURLToKURL( 1417 settings->setUserStyleSheetLocation(webkit_glue::GURLToKURL(
1418 preferences.user_style_sheet_location)); 1418 preferences.user_style_sheet_location));
1419 } else { 1419 } else {
1420 settings->setUserStyleSheetLocation(KURL()); 1420 settings->setUserStyleSheetLocation(KURL());
1421 } 1421 }
1422 settings->setUsesPageCache(preferences.uses_page_cache); 1422 settings->setUsesPageCache(preferences.uses_page_cache);
1423 settings->setRemoteFontEnabled(preferences.remote_font_enabled);
1423 1424
1424 // This setting affects the behavior of links in an editable region: 1425 // This setting affects the behavior of links in an editable region:
1425 // clicking the link should select it rather than navigate to it. 1426 // clicking the link should select it rather than navigate to it.
1426 // Safari uses the same default. It is unlikley an embedder would want to 1427 // Safari uses the same default. It is unlikley an embedder would want to
1427 // change this, since it would break existing rich text editors. 1428 // change this, since it would break existing rich text editors.
1428 settings->setEditableLinkBehavior(WebCore::EditableLinkNeverLive); 1429 settings->setEditableLinkBehavior(WebCore::EditableLinkNeverLive);
1429 1430
1430 settings->setFontRenderingMode(NormalRenderingMode); 1431 settings->setFontRenderingMode(NormalRenderingMode);
1431 settings->setJavaEnabled(preferences.java_enabled); 1432 settings->setJavaEnabled(preferences.java_enabled);
1432 1433
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
1851 1852
1852 return document->focusedNode(); 1853 return document->focusedNode();
1853 } 1854 }
1854 1855
1855 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) { 1856 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) {
1856 IntPoint doc_point( 1857 IntPoint doc_point(
1857 page_->mainFrame()->view()->windowToContents(pos)); 1858 page_->mainFrame()->view()->windowToContents(pos));
1858 return page_->mainFrame()->eventHandler()-> 1859 return page_->mainFrame()->eventHandler()->
1859 hitTestResultAtPoint(doc_point, false); 1860 hitTestResultAtPoint(doc_point, false);
1860 } 1861 }
OLDNEW
« no previous file with comments | « webkit/glue/webpreferences.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698