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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.h

Issue 1307013004: Propagate scrolling/marginwidth/marginheight property values to child frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: content_unittests compile fix Created 5 years, 1 month 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) 2006, 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 virtual void disconnectContentFrame(); 53 virtual void disconnectContentFrame();
54 54
55 // Most subclasses use LayoutPart (either LayoutEmbeddedObject or LayoutIFra me) 55 // Most subclasses use LayoutPart (either LayoutEmbeddedObject or LayoutIFra me)
56 // except for HTMLObjectElement and HTMLEmbedElement which may return any 56 // except for HTMLObjectElement and HTMLEmbedElement which may return any
57 // LayoutObject when using fallback content. 57 // LayoutObject when using fallback content.
58 LayoutPart* layoutPart() const; 58 LayoutPart* layoutPart() const;
59 59
60 Document* getSVGDocument(ExceptionState&) const; 60 Document* getSVGDocument(ExceptionState&) const;
61 61
62 virtual ScrollbarMode scrollingMode() const { return ScrollbarAuto; }
63
64 virtual bool loadedNonEmptyDocument() const { return false; } 62 virtual bool loadedNonEmptyDocument() const { return false; }
65 virtual void didLoadNonEmptyDocument() { } 63 virtual void didLoadNonEmptyDocument() { }
66 64
67 void setWidget(PassRefPtrWillBeRawPtr<Widget>); 65 void setWidget(PassRefPtrWillBeRawPtr<Widget>);
68 PassRefPtrWillBeRawPtr<Widget> releaseWidget(); 66 PassRefPtrWillBeRawPtr<Widget> releaseWidget();
69 Widget* ownedWidget() const; 67 Widget* ownedWidget() const;
70 68
71 class UpdateSuspendScope { 69 class UpdateSuspendScope {
72 STACK_ALLOCATED(); 70 STACK_ALLOCATED();
73 public: 71 public:
74 UpdateSuspendScope(); 72 UpdateSuspendScope();
75 ~UpdateSuspendScope(); 73 ~UpdateSuspendScope();
76 74
77 private: 75 private:
78 void performDeferredWidgetTreeOperations(); 76 void performDeferredWidgetTreeOperations();
79 }; 77 };
80 78
81 // FrameOwner overrides: 79 // FrameOwner overrides:
82 bool isLocal() const override { return true; } 80 bool isLocal() const override { return true; }
83 void dispatchLoad() override; 81 void dispatchLoad() override;
84 SandboxFlags sandboxFlags() const override { return m_sandboxFlags; } 82 SandboxFlags sandboxFlags() const override { return m_sandboxFlags; }
85 void renderFallbackContent() override { } 83 void renderFallbackContent() override { }
84 ScrollbarMode scrollingMode() const override { return ScrollbarAuto; }
85 int marginWidth() const override { return -1; }
86 int marginHeight() const override { return -1; }
86 87
87 DECLARE_VIRTUAL_TRACE(); 88 DECLARE_VIRTUAL_TRACE();
88 89
89 protected: 90 protected:
90 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&); 91 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&);
91 void setSandboxFlags(SandboxFlags); 92 void setSandboxFlags(SandboxFlags);
92 93
93 bool loadOrRedirectSubframe(const KURL&, const AtomicString& frameName, bool replaceCurrentItem); 94 bool loadOrRedirectSubframe(const KURL&, const AtomicString& frameName, bool replaceCurrentItem);
94 95
95 private: 96 private:
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 static WillBeHeapHashCountedSet<RawPtrWillBeMember<Node>>& disabledSubtreeRo ots(); 135 static WillBeHeapHashCountedSet<RawPtrWillBeMember<Node>>& disabledSubtreeRo ots();
135 136
136 RawPtrWillBeMember<Node> m_root; 137 RawPtrWillBeMember<Node> m_root;
137 }; 138 };
138 139
139 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow ner.isLocal()); 140 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow ner.isLocal());
140 141
141 } // namespace blink 142 } // namespace blink
142 143
143 #endif // HTMLFrameOwnerElement_h 144 #endif // HTMLFrameOwnerElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698