| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 212 |
| 213 HTMLVideoElement& videoElement = toHTMLVideoElement(*fromElement); | 213 HTMLVideoElement& videoElement = toHTMLVideoElement(*fromElement); |
| 214 videoElement.didExitFullscreen(); | 214 videoElement.didExitFullscreen(); |
| 215 } | 215 } |
| 216 } | 216 } |
| 217 } | 217 } |
| 218 | 218 |
| 219 void FullscreenController::updateSize() { | 219 void FullscreenController::updateSize() { |
| 220 DCHECK(m_webViewImpl->page()); | 220 DCHECK(m_webViewImpl->page()); |
| 221 | 221 |
| 222 if (m_state != State::Fullscreen) | 222 if (m_state != State::Fullscreen && m_state != State::ExitingFullscreen) |
| 223 return; | 223 return; |
| 224 | 224 |
| 225 updatePageScaleConstraints(false); | 225 updatePageScaleConstraints(false); |
| 226 | 226 |
| 227 // Traverse all local frames and notify the LayoutFullScreen object, if any. | 227 // Traverse all local frames and notify the LayoutFullScreen object, if any. |
| 228 for (Frame* frame = m_webViewImpl->page()->mainFrame(); frame; | 228 for (Frame* frame = m_webViewImpl->page()->mainFrame(); frame; |
| 229 frame = frame->tree().traverseNext()) { | 229 frame = frame->tree().traverseNext()) { |
| 230 if (!frame->isLocalFrame()) | 230 if (!frame->isLocalFrame()) |
| 231 continue; | 231 continue; |
| 232 if (Document* document = toLocalFrame(frame)->document()) { | 232 if (Document* document = toLocalFrame(frame)->document()) { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 // again to ensure the final constraints pick up the latest contents size. | 269 // again to ensure the final constraints pick up the latest contents size. |
| 270 m_webViewImpl->didChangeContentsSize(); | 270 m_webViewImpl->didChangeContentsSize(); |
| 271 if (m_webViewImpl->mainFrameImpl() && | 271 if (m_webViewImpl->mainFrameImpl() && |
| 272 m_webViewImpl->mainFrameImpl()->frameView()) | 272 m_webViewImpl->mainFrameImpl()->frameView()) |
| 273 m_webViewImpl->mainFrameImpl()->frameView()->setNeedsLayout(); | 273 m_webViewImpl->mainFrameImpl()->frameView()->setNeedsLayout(); |
| 274 | 274 |
| 275 m_webViewImpl->updateMainFrameLayoutSize(); | 275 m_webViewImpl->updateMainFrameLayoutSize(); |
| 276 } | 276 } |
| 277 | 277 |
| 278 } // namespace blink | 278 } // namespace blink |
| OLD | NEW |