Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: Source/web/WebLocalFrameImpl.cpp

Issue 313813002: Oilpan: Replace RefPtrs to Node and its subclasses in core/dom/ with Oilpan transtion types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698