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 5703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5714 } | 5714 } |
5715 | 5715 |
5716 TransitionElementData newElements; | 5716 TransitionElementData newElements; |
5717 newElements.scope = metaElementContents.substring(firstSemicolon + 1).st
ripWhiteSpace(); | 5717 newElements.scope = metaElementContents.substring(firstSemicolon + 1).st
ripWhiteSpace(); |
5718 newElements.selector = selector; | 5718 newElements.selector = selector; |
5719 newElements.markup = markup.toString(); | 5719 newElements.markup = markup.toString(); |
5720 elementData.append(newElements); | 5720 elementData.append(newElements); |
5721 } | 5721 } |
5722 } | 5722 } |
5723 | 5723 |
| 5724 void Document::hideTransitionElements(const AtomicString& cssSelector) |
| 5725 { |
| 5726 TrackExceptionState exceptionState; |
| 5727 RefPtr<StaticNodeList> nodeList = querySelectorAll(cssSelector, exceptionSta
te); |
| 5728 if (nodeList && !exceptionState.hadException()) { |
| 5729 unsigned nodeListLength = nodeList->length(); |
| 5730 |
| 5731 for (unsigned nodeIndex = 0; nodeIndex < nodeListLength; ++nodeIndex) { |
| 5732 Node* node = nodeList->item(nodeIndex); |
| 5733 toElement(node)->setInlineStyleProperty(CSSPropertyDisplay, CSSValue
None); |
| 5734 } |
| 5735 } |
| 5736 } |
| 5737 |
5724 bool Document::hasFocus() const | 5738 bool Document::hasFocus() const |
5725 { | 5739 { |
5726 Page* page = this->page(); | 5740 Page* page = this->page(); |
5727 if (!page) | 5741 if (!page) |
5728 return false; | 5742 return false; |
5729 if (!page->focusController().isActive() || !page->focusController().isFocuse
d()) | 5743 if (!page->focusController().isActive() || !page->focusController().isFocuse
d()) |
5730 return false; | 5744 return false; |
5731 Frame* focusedFrame = page->focusController().focusedFrame(); | 5745 Frame* focusedFrame = page->focusController().focusedFrame(); |
5732 if (focusedFrame && focusedFrame->isLocalFrame()) { | 5746 if (focusedFrame && focusedFrame->isLocalFrame()) { |
5733 if (toLocalFrame(focusedFrame)->tree().isDescendantOf(frame())) | 5747 if (toLocalFrame(focusedFrame)->tree().isDescendantOf(frame())) |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5875 using namespace blink; | 5889 using namespace blink; |
5876 void showLiveDocumentInstances() | 5890 void showLiveDocumentInstances() |
5877 { | 5891 { |
5878 WeakDocumentSet& set = liveDocumentSet(); | 5892 WeakDocumentSet& set = liveDocumentSet(); |
5879 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5893 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5880 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { | 5894 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { |
5881 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); | 5895 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); |
5882 } | 5896 } |
5883 } | 5897 } |
5884 #endif | 5898 #endif |
OLD | NEW |