| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 #include "core/css/StyleSheetContents.h" | 54 #include "core/css/StyleSheetContents.h" |
| 55 #include "core/css/StyleSheetList.h" | 55 #include "core/css/StyleSheetList.h" |
| 56 #include "core/css/invalidation/StyleInvalidator.h" | 56 #include "core/css/invalidation/StyleInvalidator.h" |
| 57 #include "core/css/parser/CSSParser.h" | 57 #include "core/css/parser/CSSParser.h" |
| 58 #include "core/css/resolver/FontBuilder.h" | 58 #include "core/css/resolver/FontBuilder.h" |
| 59 #include "core/css/resolver/StyleResolver.h" | 59 #include "core/css/resolver/StyleResolver.h" |
| 60 #include "core/css/resolver/StyleResolverStats.h" | 60 #include "core/css/resolver/StyleResolverStats.h" |
| 61 #include "core/dom/AddConsoleMessageTask.h" | 61 #include "core/dom/AddConsoleMessageTask.h" |
| 62 #include "core/dom/Attr.h" | 62 #include "core/dom/Attr.h" |
| 63 #include "core/dom/CDATASection.h" | 63 #include "core/dom/CDATASection.h" |
| 64 #include "core/dom/ClientRect.h" |
| 64 #include "core/dom/Comment.h" | 65 #include "core/dom/Comment.h" |
| 65 #include "core/dom/ContextFeatures.h" | 66 #include "core/dom/ContextFeatures.h" |
| 66 #include "core/dom/DOMImplementation.h" | 67 #include "core/dom/DOMImplementation.h" |
| 67 #include "core/dom/DocumentFragment.h" | 68 #include "core/dom/DocumentFragment.h" |
| 68 #include "core/dom/DocumentLifecycleNotifier.h" | 69 #include "core/dom/DocumentLifecycleNotifier.h" |
| 69 #include "core/dom/DocumentLifecycleObserver.h" | 70 #include "core/dom/DocumentLifecycleObserver.h" |
| 70 #include "core/dom/DocumentMarkerController.h" | 71 #include "core/dom/DocumentMarkerController.h" |
| 71 #include "core/dom/DocumentType.h" | 72 #include "core/dom/DocumentType.h" |
| 72 #include "core/dom/Element.h" | 73 #include "core/dom/Element.h" |
| 73 #include "core/dom/ElementDataCache.h" | 74 #include "core/dom/ElementDataCache.h" |
| (...skipping 5542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5616 TrackExceptionState exceptionState; | 5617 TrackExceptionState exceptionState; |
| 5617 AtomicString selector(metaElementContents.substring(0, firstSemicolon)); | 5618 AtomicString selector(metaElementContents.substring(0, firstSemicolon)); |
| 5618 RefPtrWillBeRawPtr<StaticElementList> elementList = querySelectorAll(sel
ector, exceptionState); | 5619 RefPtrWillBeRawPtr<StaticElementList> elementList = querySelectorAll(sel
ector, exceptionState); |
| 5619 if (!elementList || exceptionState.hadException()) | 5620 if (!elementList || exceptionState.hadException()) |
| 5620 continue; | 5621 continue; |
| 5621 | 5622 |
| 5622 unsigned nodeListLength = elementList->length(); | 5623 unsigned nodeListLength = elementList->length(); |
| 5623 if (!nodeListLength) | 5624 if (!nodeListLength) |
| 5624 continue; | 5625 continue; |
| 5625 | 5626 |
| 5627 TransitionElementData newElements; |
| 5626 StringBuilder markup; | 5628 StringBuilder markup; |
| 5627 for (unsigned nodeIndex = 0; nodeIndex < nodeListLength; ++nodeIndex) { | 5629 for (unsigned nodeIndex = 0; nodeIndex < nodeListLength; ++nodeIndex) { |
| 5628 Element* element = elementList->item(nodeIndex); | 5630 Element* element = elementList->item(nodeIndex); |
| 5629 markup.append(createStyledMarkupForNavigationTransition(element)); | 5631 markup.append(createStyledMarkupForNavigationTransition(element)); |
| 5632 TransitionElement transitionElement; |
| 5633 if (element->hasID()) |
| 5634 transitionElement.id = element->getIdAttribute().string(); |
| 5635 else |
| 5636 transitionElement.id = ""; |
| 5637 transitionElement.rect = element->boundsInRootViewSpace(); |
| 5638 newElements.elements.append(transitionElement); |
| 5630 } | 5639 } |
| 5631 | 5640 |
| 5632 TransitionElementData newElements; | |
| 5633 newElements.scope = metaElementContents.substring(firstSemicolon + 1).st
ripWhiteSpace(); | 5641 newElements.scope = metaElementContents.substring(firstSemicolon + 1).st
ripWhiteSpace(); |
| 5634 newElements.selector = selector; | 5642 newElements.selector = selector; |
| 5635 newElements.markup = markup.toString(); | 5643 newElements.markup = markup.toString(); |
| 5636 elementData.append(newElements); | 5644 elementData.append(newElements); |
| 5637 } | 5645 } |
| 5638 } | 5646 } |
| 5639 | 5647 |
| 5640 void Document::hideTransitionElements(const AtomicString& cssSelector) | 5648 void Document::hideTransitionElements(const AtomicString& cssSelector) |
| 5641 { | 5649 { |
| 5642 TrackExceptionState exceptionState; | 5650 TrackExceptionState exceptionState; |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5830 #ifndef NDEBUG | 5838 #ifndef NDEBUG |
| 5831 using namespace blink; | 5839 using namespace blink; |
| 5832 void showLiveDocumentInstances() | 5840 void showLiveDocumentInstances() |
| 5833 { | 5841 { |
| 5834 WeakDocumentSet& set = liveDocumentSet(); | 5842 WeakDocumentSet& set = liveDocumentSet(); |
| 5835 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5843 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 5836 for (Document* document : set) | 5844 for (Document* document : set) |
| 5837 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5845 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
| 5838 } | 5846 } |
| 5839 #endif | 5847 #endif |
| OLD | NEW |