| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "core/XMLNSNames.h" | 46 #include "core/XMLNSNames.h" |
| 47 #include "core/XMLNames.h" | 47 #include "core/XMLNames.h" |
| 48 #include "core/animation/CompositorPendingAnimations.h" | 48 #include "core/animation/CompositorPendingAnimations.h" |
| 49 #include "core/animation/DocumentAnimations.h" | 49 #include "core/animation/DocumentAnimations.h" |
| 50 #include "core/animation/DocumentTimeline.h" | 50 #include "core/animation/DocumentTimeline.h" |
| 51 #include "core/css/CSSFontSelector.h" | 51 #include "core/css/CSSFontSelector.h" |
| 52 #include "core/css/CSSStyleDeclaration.h" | 52 #include "core/css/CSSStyleDeclaration.h" |
| 53 #include "core/css/CSSStyleSheet.h" | 53 #include "core/css/CSSStyleSheet.h" |
| 54 #include "core/css/FontFaceSet.h" | 54 #include "core/css/FontFaceSet.h" |
| 55 #include "core/css/MediaQueryMatcher.h" | 55 #include "core/css/MediaQueryMatcher.h" |
| 56 #include "core/css/PropertyRegistry.h" |
| 56 #include "core/css/StylePropertySet.h" | 57 #include "core/css/StylePropertySet.h" |
| 57 #include "core/css/StyleSheetContents.h" | 58 #include "core/css/StyleSheetContents.h" |
| 58 #include "core/css/StyleSheetList.h" | 59 #include "core/css/StyleSheetList.h" |
| 59 #include "core/css/invalidation/StyleInvalidator.h" | 60 #include "core/css/invalidation/StyleInvalidator.h" |
| 60 #include "core/css/parser/CSSParser.h" | 61 #include "core/css/parser/CSSParser.h" |
| 61 #include "core/css/resolver/FontBuilder.h" | 62 #include "core/css/resolver/FontBuilder.h" |
| 62 #include "core/css/resolver/StyleResolver.h" | 63 #include "core/css/resolver/StyleResolver.h" |
| 63 #include "core/css/resolver/StyleResolverStats.h" | 64 #include "core/css/resolver/StyleResolverStats.h" |
| 64 #include "core/dom/AXObjectCache.h" | 65 #include "core/dom/AXObjectCache.h" |
| 65 #include "core/dom/Attr.h" | 66 #include "core/dom/Attr.h" |
| (...skipping 5901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5967 | 5968 |
| 5968 if (order > m_shadowCascadeOrder) | 5969 if (order > m_shadowCascadeOrder) |
| 5969 m_shadowCascadeOrder = order; | 5970 m_shadowCascadeOrder = order; |
| 5970 } | 5971 } |
| 5971 | 5972 |
| 5972 LayoutViewItem Document::layoutViewItem() const | 5973 LayoutViewItem Document::layoutViewItem() const |
| 5973 { | 5974 { |
| 5974 return LayoutViewItem(m_layoutView); | 5975 return LayoutViewItem(m_layoutView); |
| 5975 } | 5976 } |
| 5976 | 5977 |
| 5978 PropertyRegistry* Document::propertyRegistry() |
| 5979 { |
| 5980 // TODO(timloh): When the flag is removed, return a reference instead. |
| 5981 if (!m_propertyRegistry && RuntimeEnabledFeatures::cssVariables2Enabled()) |
| 5982 m_propertyRegistry = PropertyRegistry::create(); |
| 5983 return m_propertyRegistry; |
| 5984 } |
| 5985 |
| 5977 DEFINE_TRACE(Document) | 5986 DEFINE_TRACE(Document) |
| 5978 { | 5987 { |
| 5979 visitor->trace(m_importsController); | 5988 visitor->trace(m_importsController); |
| 5980 visitor->trace(m_docType); | 5989 visitor->trace(m_docType); |
| 5981 visitor->trace(m_implementation); | 5990 visitor->trace(m_implementation); |
| 5982 visitor->trace(m_autofocusElement); | 5991 visitor->trace(m_autofocusElement); |
| 5983 visitor->trace(m_focusedElement); | 5992 visitor->trace(m_focusedElement); |
| 5984 visitor->trace(m_sequentialFocusNavigationStartingPoint); | 5993 visitor->trace(m_sequentialFocusNavigationStartingPoint); |
| 5985 visitor->trace(m_hoverNode); | 5994 visitor->trace(m_hoverNode); |
| 5986 visitor->trace(m_activeHoverElement); | 5995 visitor->trace(m_activeHoverElement); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6024 visitor->trace(m_userActionElements); | 6033 visitor->trace(m_userActionElements); |
| 6025 visitor->trace(m_svgExtensions); | 6034 visitor->trace(m_svgExtensions); |
| 6026 visitor->trace(m_timeline); | 6035 visitor->trace(m_timeline); |
| 6027 visitor->trace(m_compositorPendingAnimations); | 6036 visitor->trace(m_compositorPendingAnimations); |
| 6028 visitor->trace(m_contextDocument); | 6037 visitor->trace(m_contextDocument); |
| 6029 visitor->trace(m_canvasFontCache); | 6038 visitor->trace(m_canvasFontCache); |
| 6030 visitor->trace(m_intersectionObserverController); | 6039 visitor->trace(m_intersectionObserverController); |
| 6031 visitor->trace(m_intersectionObserverData); | 6040 visitor->trace(m_intersectionObserverData); |
| 6032 visitor->trace(m_snapCoordinator); | 6041 visitor->trace(m_snapCoordinator); |
| 6033 visitor->trace(m_resizeObserverController); | 6042 visitor->trace(m_resizeObserverController); |
| 6043 visitor->trace(m_propertyRegistry); |
| 6034 Supplementable<Document>::trace(visitor); | 6044 Supplementable<Document>::trace(visitor); |
| 6035 TreeScope::trace(visitor); | 6045 TreeScope::trace(visitor); |
| 6036 ContainerNode::trace(visitor); | 6046 ContainerNode::trace(visitor); |
| 6037 ExecutionContext::trace(visitor); | 6047 ExecutionContext::trace(visitor); |
| 6038 SecurityContext::trace(visitor); | 6048 SecurityContext::trace(visitor); |
| 6039 } | 6049 } |
| 6040 | 6050 |
| 6041 void Document::onVisibilityMaybeChanged(bool visible) | 6051 void Document::onVisibilityMaybeChanged(bool visible) |
| 6042 { | 6052 { |
| 6043 DCHECK(frame()); | 6053 DCHECK(frame()); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6078 } | 6088 } |
| 6079 | 6089 |
| 6080 void showLiveDocumentInstances() | 6090 void showLiveDocumentInstances() |
| 6081 { | 6091 { |
| 6082 WeakDocumentSet& set = liveDocumentSet(); | 6092 WeakDocumentSet& set = liveDocumentSet(); |
| 6083 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6093 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6084 for (Document* document : set) | 6094 for (Document* document : set) |
| 6085 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6095 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
| 6086 } | 6096 } |
| 6087 #endif | 6097 #endif |
| OLD | NEW |