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 1272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1283 { | 1283 { |
1284 if (WebPlugin* plugin = focusedPluginIfInputMethodSupported()) { | 1284 if (WebPlugin* plugin = focusedPluginIfInputMethodSupported()) { |
1285 plugin->extendSelectionAndDelete(before, after); | 1285 plugin->extendSelectionAndDelete(before, after); |
1286 return; | 1286 return; |
1287 } | 1287 } |
1288 frame()->inputMethodController().extendSelectionAndDelete(before, after); | 1288 frame()->inputMethodController().extendSelectionAndDelete(before, after); |
1289 } | 1289 } |
1290 | 1290 |
1291 void WebLocalFrameImpl::addStyleSheetByURL(const WebString& url) | 1291 void WebLocalFrameImpl::addStyleSheetByURL(const WebString& url) |
1292 { | 1292 { |
1293 RefPtr<Element> styleElement = frame()->document()->createElement(HTMLNames:
:linkTag, false); | 1293 RefPtrWillBeRawPtr<Element> styleElement = frame()->document()->createElemen
t(HTMLNames::linkTag, false); |
1294 | 1294 |
1295 styleElement->setAttribute(HTMLNames::typeAttr, "text/css"); | 1295 styleElement->setAttribute(HTMLNames::typeAttr, "text/css"); |
1296 styleElement->setAttribute(HTMLNames::relAttr, "stylesheet"); | 1296 styleElement->setAttribute(HTMLNames::relAttr, "stylesheet"); |
1297 styleElement->setAttribute(HTMLNames::hrefAttr, url); | 1297 styleElement->setAttribute(HTMLNames::hrefAttr, url); |
1298 | 1298 |
1299 frame()->document()->head()->appendChild(styleElement.release(), IGNORE_EXCE
PTION); | 1299 frame()->document()->head()->appendChild(styleElement.release(), IGNORE_EXCE
PTION); |
1300 } | 1300 } |
1301 | 1301 |
1302 void WebLocalFrameImpl::setCaretVisible(bool visible) | 1302 void WebLocalFrameImpl::setCaretVisible(bool visible) |
1303 { | 1303 { |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1919 | 1919 |
1920 void WebLocalFrameImpl::invalidateAll() const | 1920 void WebLocalFrameImpl::invalidateAll() const |
1921 { | 1921 { |
1922 ASSERT(frame() && frame()->view()); | 1922 ASSERT(frame() && frame()->view()); |
1923 FrameView* view = frame()->view(); | 1923 FrameView* view = frame()->view(); |
1924 view->invalidateRect(view->frameRect()); | 1924 view->invalidateRect(view->frameRect()); |
1925 invalidateScrollbar(); | 1925 invalidateScrollbar(); |
1926 } | 1926 } |
1927 | 1927 |
1928 } // namespace blink | 1928 } // namespace blink |
OLD | NEW |