Chromium Code Reviews| 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 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1217 | 1217 |
| 1218 void WebLocalFrameImpl::extendSelectionAndDelete(int before, int after) | 1218 void WebLocalFrameImpl::extendSelectionAndDelete(int before, int after) |
| 1219 { | 1219 { |
| 1220 if (WebPlugin* plugin = focusedPluginIfInputMethodSupported()) { | 1220 if (WebPlugin* plugin = focusedPluginIfInputMethodSupported()) { |
| 1221 plugin->extendSelectionAndDelete(before, after); | 1221 plugin->extendSelectionAndDelete(before, after); |
| 1222 return; | 1222 return; |
| 1223 } | 1223 } |
| 1224 frame()->inputMethodController().extendSelectionAndDelete(before, after); | 1224 frame()->inputMethodController().extendSelectionAndDelete(before, after); |
| 1225 } | 1225 } |
| 1226 | 1226 |
| 1227 void WebLocalFrameImpl::beginExitTransition(const WebString& cssSelector) | |
| 1228 { | |
| 1229 frame()->document()->hideTransitionElements(cssSelector); | |
| 1230 frame()->loader().closeURL(); | |
|
abarth-chromium
2014/07/29 17:07:15
Will this cause us to dispatch the unload event tw
oystein (OOO til 10th of July)
2014/07/30 22:11:51
After discussing this with Simon, it turns out thi
| |
| 1231 frame()->document()->styleEngine()->enableExitTransitionStylesheets(); | |
|
abarth-chromium
2014/07/29 17:07:15
It seems like the document is in a strange state a
| |
| 1232 } | |
| 1233 | |
| 1234 void WebLocalFrameImpl::setIsTransitionDocument() | |
| 1235 { | |
| 1236 // This ensures the transition UA stylesheet gets applied. | |
| 1237 frame()->document()->setIsTransitionDocument(); | |
|
abarth-chromium
2014/07/29 17:07:15
Given that this function operates exclusively on t
oystein (OOO til 10th of July)
2014/07/30 22:11:51
Done.
| |
| 1238 } | |
| 1239 | |
| 1240 void WebLocalFrameImpl::navigateToSandboxedMarkup(const WebData& markup) | |
| 1241 { | |
| 1242 ASSERT(document().securityOrigin().isUnique()); | |
| 1243 frame()->document()->enforceSandboxFlags(SandboxAll); | |
| 1244 | |
| 1245 loadHTMLString(markup, document().url(), WebURL(), true); | |
| 1246 } | |
| 1247 | |
| 1227 void WebLocalFrameImpl::setCaretVisible(bool visible) | 1248 void WebLocalFrameImpl::setCaretVisible(bool visible) |
| 1228 { | 1249 { |
| 1229 frame()->selection().setCaretVisible(visible); | 1250 frame()->selection().setCaretVisible(visible); |
| 1230 } | 1251 } |
| 1231 | 1252 |
| 1232 VisiblePosition WebLocalFrameImpl::visiblePositionForWindowPoint(const WebPoint& point) | 1253 VisiblePosition WebLocalFrameImpl::visiblePositionForWindowPoint(const WebPoint& point) |
| 1233 { | 1254 { |
| 1234 // FIXME(bokan): crbug.com/371902 - These scale/pinch transforms shouldn't | 1255 // FIXME(bokan): crbug.com/371902 - These scale/pinch transforms shouldn't |
| 1235 // be ad hoc and explicit. | 1256 // be ad hoc and explicit. |
| 1236 PinchViewport& pinchViewport = frame()->page()->frameHost().pinchViewport(); | 1257 PinchViewport& pinchViewport = frame()->page()->frameHost().pinchViewport(); |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1859 | 1880 |
| 1860 void WebLocalFrameImpl::invalidateAll() const | 1881 void WebLocalFrameImpl::invalidateAll() const |
| 1861 { | 1882 { |
| 1862 ASSERT(frame() && frame()->view()); | 1883 ASSERT(frame() && frame()->view()); |
| 1863 FrameView* view = frame()->view(); | 1884 FrameView* view = frame()->view(); |
| 1864 view->invalidateRect(view->frameRect()); | 1885 view->invalidateRect(view->frameRect()); |
| 1865 invalidateScrollbar(); | 1886 invalidateScrollbar(); |
| 1866 } | 1887 } |
| 1867 | 1888 |
| 1868 } // namespace blink | 1889 } // namespace blink |
| OLD | NEW |