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

Side by Side Diff: Source/core/dom/FullscreenElementStack.cpp

Issue 152623002: Make StyleChange parameter explicit in setNeedsStyleRecalc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/Node.h » ('j') | 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2013 Google Inc. All rights reserved. 9 * Copyright (C) 2013 Google Inc. All rights reserved.
10 * 10 *
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 return; 421 return;
422 422
423 m_fullScreenElement->setContainsFullScreenElementOnAncestorsCrossingFrameBou ndaries(false); 423 m_fullScreenElement->setContainsFullScreenElementOnAncestorsCrossingFrameBou ndaries(false);
424 424
425 m_areKeysEnabledInFullScreen = false; 425 m_areKeysEnabledInFullScreen = false;
426 426
427 if (m_fullScreenRenderer) 427 if (m_fullScreenRenderer)
428 m_fullScreenRenderer->unwrapRenderer(); 428 m_fullScreenRenderer->unwrapRenderer();
429 429
430 m_fullScreenElement = 0; 430 m_fullScreenElement = 0;
431 document()->setNeedsStyleRecalc(); 431 document()->setNeedsStyleRecalc(SubtreeStyleChange);
432 432
433 // When webkitCancelFullScreen is called, we call webkitExitFullScreen on th e topDocument(). That 433 // When webkitCancelFullScreen is called, we call webkitExitFullScreen on th e topDocument(). That
434 // means that the events will be queued there. So if we have no events here, start the timer on 434 // means that the events will be queued there. So if we have no events here, start the timer on
435 // the exiting document. 435 // the exiting document.
436 Document* exitingDocument = document(); 436 Document* exitingDocument = document();
437 if (m_fullScreenChangeEventTargetQueue.isEmpty() && m_fullScreenErrorEventTa rgetQueue.isEmpty()) 437 if (m_fullScreenChangeEventTargetQueue.isEmpty() && m_fullScreenErrorEventTa rgetQueue.isEmpty())
438 exitingDocument = document()->topDocument(); 438 exitingDocument = document()->topDocument();
439 from(exitingDocument)->m_fullScreenChangeDelayTimer.startOneShot(0); 439 from(exitingDocument)->m_fullScreenChangeDelayTimer.startOneShot(0);
440 } 440 }
441 441
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 if (!target) 560 if (!target)
561 target = fullscreen->webkitCurrentFullScreenElement(); 561 target = fullscreen->webkitCurrentFullScreenElement();
562 } 562 }
563 563
564 if (!target) 564 if (!target)
565 target = doc; 565 target = doc;
566 m_fullScreenChangeEventTargetQueue.append(target); 566 m_fullScreenChangeEventTargetQueue.append(target);
567 } 567 }
568 568
569 } // namespace WebCore 569 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698