| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1277 | 1277 |
| 1278 void WebLocalFrameImpl::extendSelectionAndDelete(int before, int after) | 1278 void WebLocalFrameImpl::extendSelectionAndDelete(int before, int after) |
| 1279 { | 1279 { |
| 1280 if (WebPlugin* plugin = focusedPluginIfInputMethodSupported()) { | 1280 if (WebPlugin* plugin = focusedPluginIfInputMethodSupported()) { |
| 1281 plugin->extendSelectionAndDelete(before, after); | 1281 plugin->extendSelectionAndDelete(before, after); |
| 1282 return; | 1282 return; |
| 1283 } | 1283 } |
| 1284 frame()->inputMethodController().extendSelectionAndDelete(before, after); | 1284 frame()->inputMethodController().extendSelectionAndDelete(before, after); |
| 1285 } | 1285 } |
| 1286 | 1286 |
| 1287 void WebLocalFrameImpl::addStyleSheetByURL(const WebString& url) |
| 1288 { |
| 1289 RefPtr<Element> styleElement = frame()->document()->createElement(HTMLNames:
:linkTag, false); |
| 1290 |
| 1291 styleElement->setAttribute(HTMLNames::typeAttr, "text/css"); |
| 1292 styleElement->setAttribute(HTMLNames::relAttr, "stylesheet"); |
| 1293 styleElement->setAttribute(HTMLNames::hrefAttr, url); |
| 1294 |
| 1295 frame()->document()->head()->appendChild(styleElement.release(), IGNORE_EXCE
PTION); |
| 1296 } |
| 1297 |
| 1287 void WebLocalFrameImpl::setCaretVisible(bool visible) | 1298 void WebLocalFrameImpl::setCaretVisible(bool visible) |
| 1288 { | 1299 { |
| 1289 frame()->selection().setCaretVisible(visible); | 1300 frame()->selection().setCaretVisible(visible); |
| 1290 } | 1301 } |
| 1291 | 1302 |
| 1292 VisiblePosition WebLocalFrameImpl::visiblePositionForWindowPoint(const WebPoint&
point) | 1303 VisiblePosition WebLocalFrameImpl::visiblePositionForWindowPoint(const WebPoint&
point) |
| 1293 { | 1304 { |
| 1294 FloatPoint unscaledPoint(point); | 1305 FloatPoint unscaledPoint(point); |
| 1295 unscaledPoint.scale(1 / view()->pageScaleFactor(), 1 / view()->pageScaleFact
or()); | 1306 unscaledPoint.scale(1 / view()->pageScaleFactor(), 1 / view()->pageScaleFact
or()); |
| 1296 | 1307 |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1901 | 1912 |
| 1902 void WebLocalFrameImpl::invalidateAll() const | 1913 void WebLocalFrameImpl::invalidateAll() const |
| 1903 { | 1914 { |
| 1904 ASSERT(frame() && frame()->view()); | 1915 ASSERT(frame() && frame()->view()); |
| 1905 FrameView* view = frame()->view(); | 1916 FrameView* view = frame()->view(); |
| 1906 view->invalidateRect(view->frameRect()); | 1917 view->invalidateRect(view->frameRect()); |
| 1907 invalidateScrollbar(); | 1918 invalidateScrollbar(); |
| 1908 } | 1919 } |
| 1909 | 1920 |
| 1910 } // namespace blink | 1921 } // namespace blink |
| OLD | NEW |