| 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 5619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5630 } | 5630 } |
| 5631 | 5631 |
| 5632 TransitionElementData newElements; | 5632 TransitionElementData newElements; |
| 5633 newElements.scope = metaElementContents.substring(firstSemicolon + 1).st
ripWhiteSpace(); | 5633 newElements.scope = metaElementContents.substring(firstSemicolon + 1).st
ripWhiteSpace(); |
| 5634 newElements.selector = selector; | 5634 newElements.selector = selector; |
| 5635 newElements.markup = markup.toString(); | 5635 newElements.markup = markup.toString(); |
| 5636 elementData.append(newElements); | 5636 elementData.append(newElements); |
| 5637 } | 5637 } |
| 5638 } | 5638 } |
| 5639 | 5639 |
| 5640 void Document::hideTransitionElements(const AtomicString& cssSelector) | 5640 void Document::updateTransitionElementOpacity(const AtomicString& cssSelector, c
onst double opacity) |
| 5641 { | 5641 { |
| 5642 TrackExceptionState exceptionState; | 5642 TrackExceptionState exceptionState; |
| 5643 RefPtrWillBeRawPtr<StaticElementList> elementList = querySelectorAll(cssSele
ctor, exceptionState); | 5643 RefPtrWillBeRawPtr<StaticElementList> elementList = querySelectorAll(cssSele
ctor, exceptionState); |
| 5644 if (elementList && !exceptionState.hadException()) { | 5644 if (elementList && !exceptionState.hadException()) { |
| 5645 unsigned nodeListLength = elementList->length(); | 5645 unsigned nodeListLength = elementList->length(); |
| 5646 | 5646 |
| 5647 for (unsigned nodeIndex = 0; nodeIndex < nodeListLength; ++nodeIndex) { | 5647 for (unsigned nodeIndex = 0; nodeIndex < nodeListLength; ++nodeIndex) { |
| 5648 Element* element = elementList->item(nodeIndex); | 5648 Element* element = elementList->item(nodeIndex); |
| 5649 element->setInlineStyleProperty(CSSPropertyOpacity, 0.0, CSSPrimitiv
eValue::CSS_NUMBER); | 5649 element->setInlineStyleProperty(CSSPropertyOpacity, opacity, CSSPrim
itiveValue::CSS_NUMBER); |
| 5650 } | 5650 } |
| 5651 } | 5651 } |
| 5652 } | 5652 } |
| 5653 | 5653 |
| 5654 bool Document::hasFocus() const | 5654 bool Document::hasFocus() const |
| 5655 { | 5655 { |
| 5656 Page* page = this->page(); | 5656 Page* page = this->page(); |
| 5657 if (!page) | 5657 if (!page) |
| 5658 return false; | 5658 return false; |
| 5659 if (!page->focusController().isActive() || !page->focusController().isFocuse
d()) | 5659 if (!page->focusController().isActive() || !page->focusController().isFocuse
d()) |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5830 #ifndef NDEBUG | 5830 #ifndef NDEBUG |
| 5831 using namespace blink; | 5831 using namespace blink; |
| 5832 void showLiveDocumentInstances() | 5832 void showLiveDocumentInstances() |
| 5833 { | 5833 { |
| 5834 WeakDocumentSet& set = liveDocumentSet(); | 5834 WeakDocumentSet& set = liveDocumentSet(); |
| 5835 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5835 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 5836 for (Document* document : set) | 5836 for (Document* document : set) |
| 5837 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5837 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
| 5838 } | 5838 } |
| 5839 #endif | 5839 #endif |
| OLD | NEW |