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

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

Issue 67210: Chrome-part of disabling web fonts by default. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | Annotate | Revision Log
« 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 1448 matching lines...) Expand 10 before | Expand all | Expand 10 after
1459 settings->setTextAreasAreResizable(preferences.text_areas_are_resizable); 1459 settings->setTextAreasAreResizable(preferences.text_areas_are_resizable);
1460 settings->setAllowScriptsToCloseWindows( 1460 settings->setAllowScriptsToCloseWindows(
1461 preferences.allow_scripts_to_close_windows); 1461 preferences.allow_scripts_to_close_windows);
1462 if (preferences.user_style_sheet_enabled) { 1462 if (preferences.user_style_sheet_enabled) {
1463 settings->setUserStyleSheetLocation(webkit_glue::GURLToKURL( 1463 settings->setUserStyleSheetLocation(webkit_glue::GURLToKURL(
1464 preferences.user_style_sheet_location)); 1464 preferences.user_style_sheet_location));
1465 } else { 1465 } else {
1466 settings->setUserStyleSheetLocation(KURL()); 1466 settings->setUserStyleSheetLocation(KURL());
1467 } 1467 }
1468 settings->setUsesPageCache(preferences.uses_page_cache); 1468 settings->setUsesPageCache(preferences.uses_page_cache);
1469 settings->setDownloadableBinaryFontsEnabled(preferences.remote_fonts_enabled);
1469 1470
1470 // This setting affects the behavior of links in an editable region: 1471 // This setting affects the behavior of links in an editable region:
1471 // clicking the link should select it rather than navigate to it. 1472 // clicking the link should select it rather than navigate to it.
1472 // Safari uses the same default. It is unlikley an embedder would want to 1473 // Safari uses the same default. It is unlikley an embedder would want to
1473 // change this, since it would break existing rich text editors. 1474 // change this, since it would break existing rich text editors.
1474 settings->setEditableLinkBehavior(WebCore::EditableLinkNeverLive); 1475 settings->setEditableLinkBehavior(WebCore::EditableLinkNeverLive);
1475 1476
1476 settings->setFontRenderingMode(NormalRenderingMode); 1477 settings->setFontRenderingMode(NormalRenderingMode);
1477 settings->setJavaEnabled(preferences.java_enabled); 1478 settings->setJavaEnabled(preferences.java_enabled);
1478 1479
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
1947 1948
1948 return document->focusedNode(); 1949 return document->focusedNode();
1949 } 1950 }
1950 1951
1951 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) { 1952 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) {
1952 IntPoint doc_point( 1953 IntPoint doc_point(
1953 page_->mainFrame()->view()->windowToContents(pos)); 1954 page_->mainFrame()->view()->windowToContents(pos));
1954 return page_->mainFrame()->eventHandler()-> 1955 return page_->mainFrame()->eventHandler()->
1955 hitTestResultAtPoint(doc_point, false); 1956 hitTestResultAtPoint(doc_point, false);
1956 } 1957 }
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