OLD | NEW |
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 5723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5734 } | 5734 } |
5735 | 5735 |
5736 TransitionElementData newElements; | 5736 TransitionElementData newElements; |
5737 newElements.scope = metaElementContents.substring(firstSemicolon + 1).st
ripWhiteSpace(); | 5737 newElements.scope = metaElementContents.substring(firstSemicolon + 1).st
ripWhiteSpace(); |
5738 newElements.selector = selector; | 5738 newElements.selector = selector; |
5739 newElements.markup = markup.toString(); | 5739 newElements.markup = markup.toString(); |
5740 elementData.append(newElements); | 5740 elementData.append(newElements); |
5741 } | 5741 } |
5742 } | 5742 } |
5743 | 5743 |
| 5744 void Document::hideTransitionElements(const AtomicString& cssSelector) |
| 5745 { |
| 5746 TrackExceptionState exceptionState; |
| 5747 RefPtr<StaticNodeList> nodeList = querySelectorAll(cssSelector, exceptionSta
te); |
| 5748 if (nodeList && !exceptionState.hadException()) { |
| 5749 unsigned nodeListLength = nodeList->length(); |
| 5750 |
| 5751 for (unsigned nodeIndex = 0; nodeIndex < nodeListLength; ++nodeIndex) { |
| 5752 Node* node = nodeList->item(nodeIndex); |
| 5753 toElement(node)->setInlineStyleProperty(CSSPropertyDisplay, CSSValue
None); |
| 5754 } |
| 5755 } |
| 5756 } |
| 5757 |
5744 bool Document::hasFocus() const | 5758 bool Document::hasFocus() const |
5745 { | 5759 { |
5746 Page* page = this->page(); | 5760 Page* page = this->page(); |
5747 if (!page) | 5761 if (!page) |
5748 return false; | 5762 return false; |
5749 if (!page->focusController().isActive() || !page->focusController().isFocuse
d()) | 5763 if (!page->focusController().isActive() || !page->focusController().isFocuse
d()) |
5750 return false; | 5764 return false; |
5751 Frame* focusedFrame = page->focusController().focusedFrame(); | 5765 Frame* focusedFrame = page->focusController().focusedFrame(); |
5752 if (focusedFrame && focusedFrame->isLocalFrame()) { | 5766 if (focusedFrame && focusedFrame->isLocalFrame()) { |
5753 if (toLocalFrame(focusedFrame)->tree().isDescendantOf(frame())) | 5767 if (toLocalFrame(focusedFrame)->tree().isDescendantOf(frame())) |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5894 using namespace blink; | 5908 using namespace blink; |
5895 void showLiveDocumentInstances() | 5909 void showLiveDocumentInstances() |
5896 { | 5910 { |
5897 WeakDocumentSet& set = liveDocumentSet(); | 5911 WeakDocumentSet& set = liveDocumentSet(); |
5898 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5912 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5899 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { | 5913 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { |
5900 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); | 5914 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); |
5901 } | 5915 } |
5902 } | 5916 } |
5903 #endif | 5917 #endif |
OLD | NEW |