Chromium Code Reviews

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

Issue 316053007: Navigation transitions: Added notifyTransitionsShown and setupTransitionsView to WebLocalFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 5716 matching lines...)
5727 } 5727 }
5728 5728
5729 TransitionElementData newElements; 5729 TransitionElementData newElements;
5730 newElements.scope = metaElementContents.substring(firstSemicolon + 1).st ripWhiteSpace(); 5730 newElements.scope = metaElementContents.substring(firstSemicolon + 1).st ripWhiteSpace();
5731 newElements.selector = selector; 5731 newElements.selector = selector;
5732 newElements.markup = markup.toString(); 5732 newElements.markup = markup.toString();
5733 elementData.append(newElements); 5733 elementData.append(newElements);
5734 } 5734 }
5735 } 5735 }
5736 5736
5737 void Document::hideTransitionElements(const String& cssSelector)
5738 {
5739 TrackExceptionState exceptionState;
5740 RefPtr<StaticNodeList> nodeList = querySelectorAll(AtomicString(cssSelector) , exceptionState);
abarth-chromium 2014/07/29 17:07:15 If we're going to use cssSelector as an AtomicStri
oystein (OOO til 10th of July) 2014/07/30 22:11:51 Done.
5741 if (nodeList && !exceptionState.hadException()) {
5742 unsigned nodeListLength = nodeList->length();
5743
5744 for (unsigned nodeIndex = 0; nodeIndex < nodeListLength; ++nodeIndex) {
5745 Node* node = nodeList->item(nodeIndex);
5746 toElement(node)->setInlineStyleProperty(CSSPropertyDisplay, CSSValue None);
5747 }
5748 }
5749 }
5750
5737 bool Document::hasFocus() const 5751 bool Document::hasFocus() const
5738 { 5752 {
5739 Page* page = this->page(); 5753 Page* page = this->page();
5740 if (!page) 5754 if (!page)
5741 return false; 5755 return false;
5742 if (!page->focusController().isActive() || !page->focusController().isFocuse d()) 5756 if (!page->focusController().isActive() || !page->focusController().isFocuse d())
5743 return false; 5757 return false;
5744 Frame* focusedFrame = page->focusController().focusedFrame(); 5758 Frame* focusedFrame = page->focusController().focusedFrame();
5745 if (focusedFrame && focusedFrame->isLocalFrame()) { 5759 if (focusedFrame && focusedFrame->isLocalFrame()) {
5746 if (toLocalFrame(focusedFrame)->tree().isDescendantOf(frame())) 5760 if (toLocalFrame(focusedFrame)->tree().isDescendantOf(frame()))
(...skipping 140 matching lines...)
5887 using namespace blink; 5901 using namespace blink;
5888 void showLiveDocumentInstances() 5902 void showLiveDocumentInstances()
5889 { 5903 {
5890 WeakDocumentSet& set = liveDocumentSet(); 5904 WeakDocumentSet& set = liveDocumentSet();
5891 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 5905 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
5892 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) { 5906 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) {
5893 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data()); 5907 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data());
5894 } 5908 }
5895 } 5909 }
5896 #endif 5910 #endif
OLDNEW

Powered by Google App Engine