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

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

Issue 2507023002: Support script modify iframe scrolling, marginWidth and marginHeight attr (Closed)
Patch Set: remove using namespace Created 4 years 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 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 #include "core/dom/custom/V0CustomElement.h" 52 #include "core/dom/custom/V0CustomElement.h"
53 #include "core/fetch/ClientHintsPreferences.h" 53 #include "core/fetch/ClientHintsPreferences.h"
54 #include "core/frame/DOMTimerCoordinator.h" 54 #include "core/frame/DOMTimerCoordinator.h"
55 #include "core/frame/HostsUsingFeatures.h" 55 #include "core/frame/HostsUsingFeatures.h"
56 #include "core/html/parser/ParserSynchronizationPolicy.h" 56 #include "core/html/parser/ParserSynchronizationPolicy.h"
57 #include "core/page/PageVisibilityState.h" 57 #include "core/page/PageVisibilityState.h"
58 #include "core/style/ComputedStyle.h" 58 #include "core/style/ComputedStyle.h"
59 #include "platform/Length.h" 59 #include "platform/Length.h"
60 #include "platform/Timer.h" 60 #include "platform/Timer.h"
61 #include "platform/WebTaskRunner.h" 61 #include "platform/WebTaskRunner.h"
62 #include "platform/scroll/ScrollTypes.h"
62 #include "platform/weborigin/KURL.h" 63 #include "platform/weborigin/KURL.h"
63 #include "platform/weborigin/ReferrerPolicy.h" 64 #include "platform/weborigin/ReferrerPolicy.h"
64 #include "public/platform/WebFocusType.h" 65 #include "public/platform/WebFocusType.h"
65 #include "public/platform/WebInsecureRequestPolicy.h" 66 #include "public/platform/WebInsecureRequestPolicy.h"
66 #include "wtf/HashSet.h" 67 #include "wtf/HashSet.h"
67 #include "wtf/PassRefPtr.h" 68 #include "wtf/PassRefPtr.h"
68 #include <memory> 69 #include <memory>
69 70
70 namespace blink { 71 namespace blink {
71 72
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 return m_resizeObserverController; 820 return m_resizeObserverController;
820 } 821 }
821 ResizeObserverController& ensureResizeObserverController(); 822 ResizeObserverController& ensureResizeObserverController();
822 823
823 void updateViewportDescription(); 824 void updateViewportDescription();
824 825
825 // Returns the owning element in the parent document. Returns nullptr if 826 // Returns the owning element in the parent document. Returns nullptr if
826 // this is the top level document or the owner is remote. 827 // this is the top level document or the owner is remote.
827 HTMLFrameOwnerElement* localOwner() const; 828 HTMLFrameOwnerElement* localOwner() const;
828 829
830 void willChangeFrameOwnerProperties(int marginWidth,
831 int marginHeight,
832 ScrollbarMode);
833
829 // Returns true if this document belongs to a frame that the parent document 834 // Returns true if this document belongs to a frame that the parent document
830 // made invisible (for instance by setting as style display:none). 835 // made invisible (for instance by setting as style display:none).
831 bool isInInvisibleSubframe() const; 836 bool isInInvisibleSubframe() const;
832 837
833 String title() const { return m_title; } 838 String title() const { return m_title; }
834 void setTitle(const String&); 839 void setTitle(const String&);
835 840
836 Element* titleElement() const { return m_titleElement.get(); } 841 Element* titleElement() const { return m_titleElement.get(); }
837 void setTitleElement(Element*); 842 void setTitleElement(Element*);
838 void removeTitle(Element* titleElement); 843 void removeTitle(Element* titleElement);
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
1712 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1717 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1713 1718
1714 } // namespace blink 1719 } // namespace blink
1715 1720
1716 #ifndef NDEBUG 1721 #ifndef NDEBUG
1717 // Outside the WebCore namespace for ease of invocation from gdb. 1722 // Outside the WebCore namespace for ease of invocation from gdb.
1718 CORE_EXPORT void showLiveDocumentInstances(); 1723 CORE_EXPORT void showLiveDocumentInstances();
1719 #endif 1724 #endif
1720 1725
1721 #endif // Document_h 1726 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698