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

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

Issue 792003002: Remove unused nodes argument to createMarkup() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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/core/editing/markup.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | 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 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1159 WebString WebLocalFrameImpl::selectionAsMarkup() const 1159 WebString WebLocalFrameImpl::selectionAsMarkup() const
1160 { 1160 {
1161 WebPluginContainerImpl* pluginContainer = pluginContainerFromFrame(frame()); 1161 WebPluginContainerImpl* pluginContainer = pluginContainerFromFrame(frame());
1162 if (pluginContainer) 1162 if (pluginContainer)
1163 return pluginContainer->plugin()->selectionAsMarkup(); 1163 return pluginContainer->plugin()->selectionAsMarkup();
1164 1164
1165 RefPtrWillBeRawPtr<Range> range = frame()->selection().toNormalizedRange(); 1165 RefPtrWillBeRawPtr<Range> range = frame()->selection().toNormalizedRange();
1166 if (!range) 1166 if (!range)
1167 return WebString(); 1167 return WebString();
1168 1168
1169 return createMarkup(range.get(), 0, AnnotateForInterchange, false, ResolveNo nLocalURLs); 1169 return createMarkup(range.get(), AnnotateForInterchange, false, ResolveNonLo calURLs);
1170 } 1170 }
1171 1171
1172 void WebLocalFrameImpl::selectWordAroundPosition(LocalFrame* frame, VisiblePosit ion position) 1172 void WebLocalFrameImpl::selectWordAroundPosition(LocalFrame* frame, VisiblePosit ion position)
1173 { 1173 {
1174 frame->selection().selectWordAroundPosition(position); 1174 frame->selection().selectWordAroundPosition(position);
1175 } 1175 }
1176 1176
1177 bool WebLocalFrameImpl::selectWordAroundCaret() 1177 bool WebLocalFrameImpl::selectWordAroundCaret()
1178 { 1178 {
1179 FrameSelection& selection = frame()->selection(); 1179 FrameSelection& selection = frame()->selection();
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
1995 1995
1996 void WebLocalFrameImpl::invalidateAll() const 1996 void WebLocalFrameImpl::invalidateAll() const
1997 { 1997 {
1998 ASSERT(frame() && frame()->view()); 1998 ASSERT(frame() && frame()->view());
1999 FrameView* view = frame()->view(); 1999 FrameView* view = frame()->view();
2000 view->invalidateRect(view->frameRect()); 2000 view->invalidateRect(view->frameRect());
2001 invalidateScrollbar(); 2001 invalidateScrollbar();
2002 } 2002 }
2003 2003
2004 } // namespace blink 2004 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/editing/markup.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698