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

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: rebase and improvements 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
« no previous file with comments | « Source/platform/heap/Handle.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
1915 1915
1916 void WebLocalFrameImpl::invalidateAll() const 1916 void WebLocalFrameImpl::invalidateAll() const
1917 { 1917 {
1918 ASSERT(frame() && frame()->view()); 1918 ASSERT(frame() && frame()->view());
1919 FrameView* view = frame()->view(); 1919 FrameView* view = frame()->view();
1920 view->invalidateRect(view->frameRect()); 1920 view->invalidateRect(view->frameRect());
1921 invalidateScrollbar(); 1921 invalidateScrollbar();
1922 } 1922 }
1923 1923
1924 } // namespace blink 1924 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/heap/Handle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698