OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |