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

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

Issue 139743005: Replace RenderFullScreen with top layer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: TestExpectations for /virtual/android/fullscreen Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/fullscreen.css ('k') | Source/core/dom/Element.cpp » ('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, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 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) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 4799 matching lines...) Expand 10 before | Expand all | Expand 10 after
4810 if (!element->isInTopLayer()) 4810 if (!element->isInTopLayer())
4811 return; 4811 return;
4812 size_t position = m_topLayerElements.find(element); 4812 size_t position = m_topLayerElements.find(element);
4813 ASSERT(position != kNotFound); 4813 ASSERT(position != kNotFound);
4814 m_topLayerElements.remove(position); 4814 m_topLayerElements.remove(position);
4815 element->setIsInTopLayer(false); 4815 element->setIsInTopLayer(false);
4816 } 4816 }
4817 4817
4818 HTMLDialogElement* Document::activeModalDialog() const 4818 HTMLDialogElement* Document::activeModalDialog() const
4819 { 4819 {
4820 if (m_topLayerElements.isEmpty()) 4820 Vector<RefPtr<Element> >::const_reverse_iterator end = m_topLayerElements.re nd();
4821 return 0; 4821 for (Vector<RefPtr<Element> >::const_reverse_iterator it = m_topLayerElement s.rbegin(); it != end; ++it) {
4822 return toHTMLDialogElement(m_topLayerElements.last().get()); 4822 if (!it->get()->hasTagName(dialogTag))
4823 continue;
4824 HTMLDialogElement* dialog = toHTMLDialogElement(it->get());
4825 if (dialog->isModal())
4826 return dialog;
4827 }
4828 return 0;
4823 } 4829 }
4824 4830
4825 void Document::webkitExitPointerLock() 4831 void Document::webkitExitPointerLock()
4826 { 4832 {
4827 if (!page()) 4833 if (!page())
4828 return; 4834 return;
4829 if (Element* target = page()->pointerLockController().element()) { 4835 if (Element* target = page()->pointerLockController().element()) {
4830 if (target->document() != this) 4836 if (target->document() != this)
4831 return; 4837 return;
4832 } 4838 }
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
5355 if (!page->focusController().isActive() || !page->focusController().isFocuse d()) 5361 if (!page->focusController().isActive() || !page->focusController().isFocuse d())
5356 return false; 5362 return false;
5357 if (Frame* focusedFrame = page->focusController().focusedFrame()) { 5363 if (Frame* focusedFrame = page->focusController().focusedFrame()) {
5358 if (focusedFrame->tree().isDescendantOf(frame())) 5364 if (focusedFrame->tree().isDescendantOf(frame()))
5359 return true; 5365 return true;
5360 } 5366 }
5361 return false; 5367 return false;
5362 } 5368 }
5363 5369
5364 } // namespace WebCore 5370 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/fullscreen.css ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698