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

Side by Side Diff: third_party/WebKit/Source/web/FullscreenController.cpp

Issue 2652763011: Call LayoutFullScreen::updateStyle() when exiting Fullscreen (Closed)
Patch Set: Created 3 years, 11 months 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
« no previous file with comments | « no previous file | no next file » | 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) 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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698