Chromium Code Reviews| Index: Source/web/WebLocalFrameImpl.cpp |
| diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp |
| index d246d6429bb3d4d14845836d5cef76892d60a94b..4c482dbec7e4e64c17923c276db32f38a7d8df97 100644 |
| --- a/Source/web/WebLocalFrameImpl.cpp |
| +++ b/Source/web/WebLocalFrameImpl.cpp |
| @@ -1224,6 +1224,27 @@ void WebLocalFrameImpl::extendSelectionAndDelete(int before, int after) |
| frame()->inputMethodController().extendSelectionAndDelete(before, after); |
| } |
| +void WebLocalFrameImpl::beginExitTransition(const WebString& cssSelector) |
| +{ |
| + frame()->document()->hideTransitionElements(cssSelector); |
| + 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
|
| + frame()->document()->styleEngine()->enableExitTransitionStylesheets(); |
|
abarth-chromium
2014/07/29 17:07:15
It seems like the document is in a strange state a
|
| +} |
| + |
| +void WebLocalFrameImpl::setIsTransitionDocument() |
| +{ |
| + // This ensures the transition UA stylesheet gets applied. |
| + 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.
|
| +} |
| + |
| +void WebLocalFrameImpl::navigateToSandboxedMarkup(const WebData& markup) |
| +{ |
| + ASSERT(document().securityOrigin().isUnique()); |
| + frame()->document()->enforceSandboxFlags(SandboxAll); |
| + |
| + loadHTMLString(markup, document().url(), WebURL(), true); |
| +} |
| + |
| void WebLocalFrameImpl::setCaretVisible(bool visible) |
| { |
| frame()->selection().setCaretVisible(visible); |