| 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 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |