| 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 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1417 preferences.allow_scripts_to_close_windows); | 1417 preferences.allow_scripts_to_close_windows); |
| 1418 if (preferences.user_style_sheet_enabled) { | 1418 if (preferences.user_style_sheet_enabled) { |
| 1419 settings->setUserStyleSheetLocation(webkit_glue::GURLToKURL( | 1419 settings->setUserStyleSheetLocation(webkit_glue::GURLToKURL( |
| 1420 preferences.user_style_sheet_location)); | 1420 preferences.user_style_sheet_location)); |
| 1421 } else { | 1421 } else { |
| 1422 settings->setUserStyleSheetLocation(KURL()); | 1422 settings->setUserStyleSheetLocation(KURL()); |
| 1423 } | 1423 } |
| 1424 settings->setUsesPageCache(preferences.uses_page_cache); | 1424 settings->setUsesPageCache(preferences.uses_page_cache); |
| 1425 settings->setDownloadableBinaryFontsEnabled(preferences.remote_fonts_enabled); | 1425 settings->setDownloadableBinaryFontsEnabled(preferences.remote_fonts_enabled); |
| 1426 settings->setXSSAuditorEnabled(preferences.xss_auditor_enabled); | 1426 settings->setXSSAuditorEnabled(preferences.xss_auditor_enabled); |
| 1427 settings->setLocalStorageEnabled(preferences.local_storage_enabled); |
| 1428 settings->setSessionStorageEnabled(preferences.session_storage_enabled); |
| 1427 | 1429 |
| 1428 // This setting affects the behavior of links in an editable region: | 1430 // This setting affects the behavior of links in an editable region: |
| 1429 // clicking the link should select it rather than navigate to it. | 1431 // clicking the link should select it rather than navigate to it. |
| 1430 // Safari uses the same default. It is unlikley an embedder would want to | 1432 // Safari uses the same default. It is unlikley an embedder would want to |
| 1431 // change this, since it would break existing rich text editors. | 1433 // change this, since it would break existing rich text editors. |
| 1432 settings->setEditableLinkBehavior(WebCore::EditableLinkNeverLive); | 1434 settings->setEditableLinkBehavior(WebCore::EditableLinkNeverLive); |
| 1433 | 1435 |
| 1434 settings->setFontRenderingMode(NormalRenderingMode); | 1436 settings->setFontRenderingMode(NormalRenderingMode); |
| 1435 settings->setJavaEnabled(preferences.java_enabled); | 1437 settings->setJavaEnabled(preferences.java_enabled); |
| 1436 | 1438 |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1897 | 1899 |
| 1898 return document->focusedNode(); | 1900 return document->focusedNode(); |
| 1899 } | 1901 } |
| 1900 | 1902 |
| 1901 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) { | 1903 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) { |
| 1902 IntPoint doc_point( | 1904 IntPoint doc_point( |
| 1903 page_->mainFrame()->view()->windowToContents(pos)); | 1905 page_->mainFrame()->view()->windowToContents(pos)); |
| 1904 return page_->mainFrame()->eventHandler()-> | 1906 return page_->mainFrame()->eventHandler()-> |
| 1905 hitTestResultAtPoint(doc_point, false); | 1907 hitTestResultAtPoint(doc_point, false); |
| 1906 } | 1908 } |
| OLD | NEW |