| 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 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1259 preferences.cursive_font_family)); | 1259 preferences.cursive_font_family)); |
| 1260 settings->setFantasyFontFamily(webkit_glue::StdWStringToString( | 1260 settings->setFantasyFontFamily(webkit_glue::StdWStringToString( |
| 1261 preferences.fantasy_font_family)); | 1261 preferences.fantasy_font_family)); |
| 1262 settings->setDefaultFontSize(preferences.default_font_size); | 1262 settings->setDefaultFontSize(preferences.default_font_size); |
| 1263 settings->setDefaultFixedFontSize(preferences.default_fixed_font_size); | 1263 settings->setDefaultFixedFontSize(preferences.default_fixed_font_size); |
| 1264 settings->setMinimumFontSize(preferences.minimum_font_size); | 1264 settings->setMinimumFontSize(preferences.minimum_font_size); |
| 1265 settings->setMinimumLogicalFontSize(preferences.minimum_logical_font_size); | 1265 settings->setMinimumLogicalFontSize(preferences.minimum_logical_font_size); |
| 1266 settings->setDefaultTextEncodingName(webkit_glue::StdWStringToString( | 1266 settings->setDefaultTextEncodingName(webkit_glue::StdWStringToString( |
| 1267 preferences.default_encoding)); | 1267 preferences.default_encoding)); |
| 1268 settings->setJavaScriptEnabled(preferences.javascript_enabled); | 1268 settings->setJavaScriptEnabled(preferences.javascript_enabled); |
| 1269 settings->setWebSecurityEnabled(preferences.web_security_enabled); |
| 1269 settings->setJavaScriptCanOpenWindowsAutomatically( | 1270 settings->setJavaScriptCanOpenWindowsAutomatically( |
| 1270 preferences.javascript_can_open_windows_automatically); | 1271 preferences.javascript_can_open_windows_automatically); |
| 1271 settings->setLoadsImagesAutomatically( | 1272 settings->setLoadsImagesAutomatically( |
| 1272 preferences.loads_images_automatically); | 1273 preferences.loads_images_automatically); |
| 1273 settings->setPluginsEnabled(preferences.plugins_enabled); | 1274 settings->setPluginsEnabled(preferences.plugins_enabled); |
| 1274 settings->setDOMPasteAllowed(preferences.dom_paste_enabled); | 1275 settings->setDOMPasteAllowed(preferences.dom_paste_enabled); |
| 1275 settings->setDeveloperExtrasEnabled(preferences.developer_extras_enabled); | 1276 settings->setDeveloperExtrasEnabled(preferences.developer_extras_enabled); |
| 1276 settings->setShrinksStandaloneImagesToFit( | 1277 settings->setShrinksStandaloneImagesToFit( |
| 1277 preferences.shrinks_standalone_images_to_fit); | 1278 preferences.shrinks_standalone_images_to_fit); |
| 1278 settings->setUsesUniversalDetector(preferences.uses_universal_detector); | 1279 settings->setUsesUniversalDetector(preferences.uses_universal_detector); |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1661 Frame* frame = page_->focusController()->focusedFrame(); | 1662 Frame* frame = page_->focusController()->focusedFrame(); |
| 1662 if (!frame) | 1663 if (!frame) |
| 1663 return NULL; | 1664 return NULL; |
| 1664 | 1665 |
| 1665 Document* document = frame->document(); | 1666 Document* document = frame->document(); |
| 1666 if (!document) | 1667 if (!document) |
| 1667 return NULL; | 1668 return NULL; |
| 1668 | 1669 |
| 1669 return document->focusedNode(); | 1670 return document->focusedNode(); |
| 1670 } | 1671 } |
| OLD | NEW |