Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 1922793002: Move deferred commit logic from WebViewImpl to Document. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 739 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 750
751 // "body element" as defined by HTML5 (https://html.spec.whatwg.org/multipag e/dom.html#the-body-element-2). 751 // "body element" as defined by HTML5 (https://html.spec.whatwg.org/multipag e/dom.html#the-body-element-2).
752 // That is, the first body or frameset child of the document element. 752 // That is, the first body or frameset child of the document element.
753 HTMLElement* body() const; 753 HTMLElement* body() const;
754 754
755 // "HTML body element" as defined by CSSOM View spec (http://dev.w3.org/cssw g/cssom-view/#the-html-body-element). 755 // "HTML body element" as defined by CSSOM View spec (http://dev.w3.org/cssw g/cssom-view/#the-html-body-element).
756 // That is, the first body child of the document element. 756 // That is, the first body child of the document element.
757 HTMLBodyElement* firstBodyElement() const; 757 HTMLBodyElement* firstBodyElement() const;
758 758
759 void setBody(HTMLElement*, ExceptionState&); 759 void setBody(HTMLElement*, ExceptionState&);
760 void willInsertBody();
760 761
761 HTMLHeadElement* head() const; 762 HTMLHeadElement* head() const;
762 763
763 // Decide which element is to define the viewport's overflow policy. If |roo tStyle| is set, use 764 // Decide which element is to define the viewport's overflow policy. If |roo tStyle| is set, use
764 // that as the style for the root element, rather than obtaining it on our o wn. The reason for 765 // that as the style for the root element, rather than obtaining it on our o wn. The reason for
765 // this is that style may not have been associated with the elements yet - i n which case it may 766 // this is that style may not have been associated with the elements yet - i n which case it may
766 // have been calculated on the fly (without associating it with the actual e lement) somewhere. 767 // have been calculated on the fly (without associating it with the actual e lement) somewhere.
767 Element* viewportDefiningElement(const ComputedStyle* rootStyle = nullptr) c onst; 768 Element* viewportDefiningElement(const ComputedStyle* rootStyle = nullptr) c onst;
768 769
769 DocumentMarkerController& markers() const { return *m_markers; } 770 DocumentMarkerController& markers() const { return *m_markers; }
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
1103 bool dirtyElementsForLayerUpdate(); 1104 bool dirtyElementsForLayerUpdate();
1104 1105
1105 void updateUseShadowTreesIfNeeded(); 1106 void updateUseShadowTreesIfNeeded();
1106 void evaluateMediaQueryListIfNeeded(); 1107 void evaluateMediaQueryListIfNeeded();
1107 1108
1108 void updateStyle(); 1109 void updateStyle();
1109 void notifyLayoutTreeOfSubtreeChanges(); 1110 void notifyLayoutTreeOfSubtreeChanges();
1110 1111
1111 void detachParser(); 1112 void detachParser();
1112 1113
1114 void beginLifecycleUpdatesIfRenderingReady();
1115
1113 bool isDocument() const final { return true; } 1116 bool isDocument() const final { return true; }
1114 1117
1115 void childrenChanged(const ChildrenChange&) override; 1118 void childrenChanged(const ChildrenChange&) override;
1116 1119
1117 String nodeName() const final; 1120 String nodeName() const final;
1118 NodeType getNodeType() const final; 1121 NodeType getNodeType() const final;
1119 bool childTypeAllowed(NodeType) const final; 1122 bool childTypeAllowed(NodeType) const final;
1120 Node* cloneNode(bool deep) final; 1123 Node* cloneNode(bool deep) final;
1121 void cloneDataFromDocument(const Document&); 1124 void cloneDataFromDocument(const Document&);
1122 bool isSecureContextImpl(String* errorMessage, const SecureContextCheck priv iligeContextCheck) const; 1125 bool isSecureContextImpl(String* errorMessage, const SecureContextCheck priv iligeContextCheck) const;
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1430 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1433 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1431 1434
1432 } // namespace blink 1435 } // namespace blink
1433 1436
1434 #ifndef NDEBUG 1437 #ifndef NDEBUG
1435 // Outside the WebCore namespace for ease of invocation from gdb. 1438 // Outside the WebCore namespace for ease of invocation from gdb.
1436 CORE_EXPORT void showLiveDocumentInstances(); 1439 CORE_EXPORT void showLiveDocumentInstances();
1437 #endif 1440 #endif
1438 1441
1439 #endif // Document_h 1442 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698