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

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: bokan@ comment#19 addressed 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 #include "core/dom/UserActionElementSet.h" 48 #include "core/dom/UserActionElementSet.h"
49 #include "core/dom/ViewportDescription.h" 49 #include "core/dom/ViewportDescription.h"
50 #include "core/dom/custom/V0CustomElement.h" 50 #include "core/dom/custom/V0CustomElement.h"
51 #include "core/fetch/ClientHintsPreferences.h" 51 #include "core/fetch/ClientHintsPreferences.h"
52 #include "core/frame/DOMTimerCoordinator.h" 52 #include "core/frame/DOMTimerCoordinator.h"
53 #include "core/frame/HostsUsingFeatures.h" 53 #include "core/frame/HostsUsingFeatures.h"
54 #include "core/html/parser/ParserSynchronizationPolicy.h" 54 #include "core/html/parser/ParserSynchronizationPolicy.h"
55 #include "core/page/PageVisibilityState.h" 55 #include "core/page/PageVisibilityState.h"
56 #include "platform/Length.h" 56 #include "platform/Length.h"
57 #include "platform/Timer.h" 57 #include "platform/Timer.h"
58 #include "platform/scroll/ScrollTypes.h"
58 #include "platform/weborigin/KURL.h" 59 #include "platform/weborigin/KURL.h"
59 #include "platform/weborigin/ReferrerPolicy.h" 60 #include "platform/weborigin/ReferrerPolicy.h"
60 #include "public/platform/WebFocusType.h" 61 #include "public/platform/WebFocusType.h"
61 #include "public/platform/WebInsecureRequestPolicy.h" 62 #include "public/platform/WebInsecureRequestPolicy.h"
62 #include "wtf/HashSet.h" 63 #include "wtf/HashSet.h"
63 #include "wtf/PassRefPtr.h" 64 #include "wtf/PassRefPtr.h"
64 #include <memory> 65 #include <memory>
65 66
66 namespace blink { 67 namespace blink {
67 68
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 return m_resizeObserverController; 817 return m_resizeObserverController;
817 } 818 }
818 ResizeObserverController& ensureResizeObserverController(); 819 ResizeObserverController& ensureResizeObserverController();
819 820
820 void updateViewportDescription(); 821 void updateViewportDescription();
821 822
822 // Returns the owning element in the parent document. Returns nullptr if 823 // Returns the owning element in the parent document. Returns nullptr if
823 // this is the top level document or the owner is remote. 824 // this is the top level document or the owner is remote.
824 HTMLFrameOwnerElement* localOwner() const; 825 HTMLFrameOwnerElement* localOwner() const;
825 826
827 void willChangeFrameOwnerProperties(int, int, ScrollbarMode);
alexmos 2016/11/21 17:56:56 nit: might be better to include the arg names here
828
826 // Returns true if this document belongs to a frame that the parent document 829 // Returns true if this document belongs to a frame that the parent document
827 // made invisible (for instance by setting as style display:none). 830 // made invisible (for instance by setting as style display:none).
828 bool isInInvisibleSubframe() const; 831 bool isInInvisibleSubframe() const;
829 832
830 String title() const { return m_title; } 833 String title() const { return m_title; }
831 void setTitle(const String&); 834 void setTitle(const String&);
832 835
833 Element* titleElement() const { return m_titleElement.get(); } 836 Element* titleElement() const { return m_titleElement.get(); }
834 void setTitleElement(Element*); 837 void setTitleElement(Element*);
835 void removeTitle(Element* titleElement); 838 void removeTitle(Element* titleElement);
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1717 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1715 1718
1716 } // namespace blink 1719 } // namespace blink
1717 1720
1718 #ifndef NDEBUG 1721 #ifndef NDEBUG
1719 // Outside the WebCore namespace for ease of invocation from gdb. 1722 // Outside the WebCore namespace for ease of invocation from gdb.
1720 CORE_EXPORT void showLiveDocumentInstances(); 1723 CORE_EXPORT void showLiveDocumentInstances();
1721 #endif 1724 #endif
1722 1725
1723 #endif // Document_h 1726 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698