| 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 5534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5608 TrackExceptionState exceptionState; | 5609 TrackExceptionState exceptionState; |
| 5609 AtomicString selector(metaElementContents.substring(0, firstSemicolon)); | 5610 AtomicString selector(metaElementContents.substring(0, firstSemicolon)); |
| 5610 RefPtrWillBeRawPtr<StaticElementList> elementList = querySelectorAll(sel
ector, exceptionState); | 5611 RefPtrWillBeRawPtr<StaticElementList> elementList = querySelectorAll(sel
ector, exceptionState); |
| 5611 if (!elementList || exceptionState.hadException()) | 5612 if (!elementList || exceptionState.hadException()) |
| 5612 continue; | 5613 continue; |
| 5613 | 5614 |
| 5614 unsigned nodeListLength = elementList->length(); | 5615 unsigned nodeListLength = elementList->length(); |
| 5615 if (!nodeListLength) | 5616 if (!nodeListLength) |
| 5616 continue; | 5617 continue; |
| 5617 | 5618 |
| 5619 TransitionElementData newElements; |
| 5618 StringBuilder markup; | 5620 StringBuilder markup; |
| 5619 for (unsigned nodeIndex = 0; nodeIndex < nodeListLength; ++nodeIndex) { | 5621 for (unsigned nodeIndex = 0; nodeIndex < nodeListLength; ++nodeIndex) { |
| 5620 Element* element = elementList->item(nodeIndex); | 5622 Element* element = elementList->item(nodeIndex); |
| 5621 markup.append(createStyledMarkupForNavigationTransition(element)); | 5623 markup.append(createStyledMarkupForNavigationTransition(element)); |
| 5624 TransitionElement transitionElement; |
| 5625 if (element->hasID()) |
| 5626 transitionElement.name = element->getIdAttribute().string(); |
| 5627 else |
| 5628 transitionElement.name = ""; |
| 5629 transitionElement.rect = element->boundsInRootViewSpace(); |
| 5630 newElements.elements.append(transitionElement); |
| 5622 } | 5631 } |
| 5623 | 5632 |
| 5624 TransitionElementData newElements; | |
| 5625 newElements.scope = metaElementContents.substring(firstSemicolon + 1).st
ripWhiteSpace(); | 5633 newElements.scope = metaElementContents.substring(firstSemicolon + 1).st
ripWhiteSpace(); |
| 5626 newElements.selector = selector; | 5634 newElements.selector = selector; |
| 5627 newElements.markup = markup.toString(); | 5635 newElements.markup = markup.toString(); |
| 5628 elementData.append(newElements); | 5636 elementData.append(newElements); |
| 5629 } | 5637 } |
| 5630 } | 5638 } |
| 5631 | 5639 |
| 5632 void Document::hideTransitionElements(const AtomicString& cssSelector) | 5640 void Document::hideTransitionElements(const AtomicString& cssSelector) |
| 5633 { | 5641 { |
| 5634 TrackExceptionState exceptionState; | 5642 TrackExceptionState exceptionState; |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5822 #ifndef NDEBUG | 5830 #ifndef NDEBUG |
| 5823 using namespace blink; | 5831 using namespace blink; |
| 5824 void showLiveDocumentInstances() | 5832 void showLiveDocumentInstances() |
| 5825 { | 5833 { |
| 5826 WeakDocumentSet& set = liveDocumentSet(); | 5834 WeakDocumentSet& set = liveDocumentSet(); |
| 5827 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5835 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 5828 for (Document* document : set) | 5836 for (Document* document : set) |
| 5829 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()); |
| 5830 } | 5838 } |
| 5831 #endif | 5839 #endif |
| OLD | NEW |