Chromium Code Reviews| 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, 2010, 2012 Apple Inc. All r ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 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) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 9 * Copyright (C) 2011 Google Inc. All rights reserved. | 9 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1038 void registerVisibilityObserver(DocumentVisibilityObserver*); | 1038 void registerVisibilityObserver(DocumentVisibilityObserver*); |
| 1039 void unregisterVisibilityObserver(DocumentVisibilityObserver*); | 1039 void unregisterVisibilityObserver(DocumentVisibilityObserver*); |
| 1040 | 1040 |
| 1041 void updateStyleInvalidationIfNeeded(); | 1041 void updateStyleInvalidationIfNeeded(); |
| 1042 | 1042 |
| 1043 virtual void trace(Visitor*) OVERRIDE; | 1043 virtual void trace(Visitor*) OVERRIDE; |
| 1044 | 1044 |
| 1045 bool hasSVGFilterElementsRequiringLayerUpdate() const { return m_layerUpdate SVGFilterElements.size(); } | 1045 bool hasSVGFilterElementsRequiringLayerUpdate() const { return m_layerUpdate SVGFilterElements.size(); } |
| 1046 void didRecalculateStyleForElement() { ++m_styleRecalcElementCounter; } | 1046 void didRecalculateStyleForElement() { ++m_styleRecalcElementCounter; } |
| 1047 | 1047 |
| 1048 // Public for use by MediaQueryMatcher | |
| 1049 ScriptedAnimationController& ensureScriptedAnimationController(); | |
|
esprehn
2014/07/01 00:01:06
This should not be public.
cbiesinger
2014/07/01 00:12:09
(see above)
| |
| 1050 | |
| 1048 protected: | 1051 protected: |
| 1049 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); | 1052 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); |
| 1050 | 1053 |
| 1051 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL; | 1054 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL; |
| 1052 | 1055 |
| 1053 void clearXMLVersion() { m_xmlVersion = String(); } | 1056 void clearXMLVersion() { m_xmlVersion = String(); } |
| 1054 | 1057 |
| 1055 #if !ENABLE(OILPAN) | 1058 #if !ENABLE(OILPAN) |
| 1056 virtual void dispose() OVERRIDE; | 1059 virtual void dispose() OVERRIDE; |
| 1057 #endif | 1060 #endif |
| 1058 | 1061 |
| 1059 virtual PassRefPtrWillBeRawPtr<Document> cloneDocumentWithoutChildren(); | 1062 virtual PassRefPtrWillBeRawPtr<Document> cloneDocumentWithoutChildren(); |
| 1060 | 1063 |
| 1061 bool importContainerNodeChildren(ContainerNode* oldContainerNode, PassRefPtr WillBeRawPtr<ContainerNode> newContainerNode, ExceptionState&); | 1064 bool importContainerNodeChildren(ContainerNode* oldContainerNode, PassRefPtr WillBeRawPtr<ContainerNode> newContainerNode, ExceptionState&); |
| 1062 void lockCompatibilityMode() { m_compatibilityModeLocked = true; } | 1065 void lockCompatibilityMode() { m_compatibilityModeLocked = true; } |
| 1063 | 1066 |
| 1064 private: | 1067 private: |
| 1065 friend class Node; | 1068 friend class Node; |
| 1066 friend class IgnoreDestructiveWriteCountIncrementer; | 1069 friend class IgnoreDestructiveWriteCountIncrementer; |
| 1067 | 1070 |
| 1068 ScriptedAnimationController& ensureScriptedAnimationController(); | |
| 1069 virtual SecurityContext& securityContext() OVERRIDE FINAL { return *this; } | 1071 virtual SecurityContext& securityContext() OVERRIDE FINAL { return *this; } |
| 1070 virtual EventQueue* eventQueue() const OVERRIDE FINAL; | 1072 virtual EventQueue* eventQueue() const OVERRIDE FINAL; |
| 1071 | 1073 |
| 1072 // FIXME: Rename the StyleRecalc state to RenderTreeUpdate. | 1074 // FIXME: Rename the StyleRecalc state to RenderTreeUpdate. |
| 1073 bool hasPendingStyleRecalc() const { return m_lifecycle.state() == DocumentL ifecycle::VisualUpdatePending; } | 1075 bool hasPendingStyleRecalc() const { return m_lifecycle.state() == DocumentL ifecycle::VisualUpdatePending; } |
| 1074 | 1076 |
| 1075 bool shouldScheduleRenderTreeUpdate() const; | 1077 bool shouldScheduleRenderTreeUpdate() const; |
| 1076 void scheduleRenderTreeUpdate(); | 1078 void scheduleRenderTreeUpdate(); |
| 1077 | 1079 |
| 1078 bool needsFullRenderTreeUpdate() const; | 1080 bool needsFullRenderTreeUpdate() const; |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1425 inline bool Node::isDocumentNode() const | 1427 inline bool Node::isDocumentNode() const |
| 1426 { | 1428 { |
| 1427 return this == document(); | 1429 return this == document(); |
| 1428 } | 1430 } |
| 1429 | 1431 |
| 1430 Node* eventTargetNodeForDocument(Document*); | 1432 Node* eventTargetNodeForDocument(Document*); |
| 1431 | 1433 |
| 1432 } // namespace WebCore | 1434 } // namespace WebCore |
| 1433 | 1435 |
| 1434 #endif // Document_h | 1436 #endif // Document_h |
| OLD | NEW |