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

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: Address comments from Daniel Created 5 years, 2 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) 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 Widget* ownedWidget() const; 66 Widget* ownedWidget() const;
69 67
70 class UpdateSuspendScope { 68 class UpdateSuspendScope {
71 STACK_ALLOCATED(); 69 STACK_ALLOCATED();
72 public: 70 public:
73 UpdateSuspendScope(); 71 UpdateSuspendScope();
74 ~UpdateSuspendScope(); 72 ~UpdateSuspendScope();
75 73
76 private: 74 private:
77 void performDeferredWidgetTreeOperations(); 75 void performDeferredWidgetTreeOperations();
78 }; 76 };
79 77
80 // FrameOwner overrides: 78 // FrameOwner overrides:
81 bool isLocal() const override { return true; } 79 bool isLocal() const override { return true; }
82 void dispatchLoad() override; 80 void dispatchLoad() override;
83 SandboxFlags sandboxFlags() const override { return m_sandboxFlags; } 81 SandboxFlags sandboxFlags() const override { return m_sandboxFlags; }
84 void renderFallbackContent() override { } 82 void renderFallbackContent() override { }
83 ScrollbarMode scrollingMode() const override { return ScrollbarAuto; }
84 int marginWidth() const override { return -1; }
85 int marginHeight() const override { return -1; }
85 86
86 DECLARE_VIRTUAL_TRACE(); 87 DECLARE_VIRTUAL_TRACE();
87 88
88 protected: 89 protected:
89 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&); 90 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&);
90 void setSandboxFlags(SandboxFlags); 91 void setSandboxFlags(SandboxFlags);
91 92
92 bool loadOrRedirectSubframe(const KURL&, const AtomicString& frameName, bool replaceCurrentItem); 93 bool loadOrRedirectSubframe(const KURL&, const AtomicString& frameName, bool replaceCurrentItem);
93 94
94 private: 95 private:
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 static WillBeHeapHashCountedSet<RawPtrWillBeMember<Node>>& disabledSubtreeRo ots(); 134 static WillBeHeapHashCountedSet<RawPtrWillBeMember<Node>>& disabledSubtreeRo ots();
134 135
135 RawPtrWillBeMember<Node> m_root; 136 RawPtrWillBeMember<Node> m_root;
136 }; 137 };
137 138
138 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow ner.isLocal()); 139 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow ner.isLocal());
139 140
140 } // namespace blink 141 } // namespace blink
141 142
142 #endif // HTMLFrameOwnerElement_h 143 #endif // HTMLFrameOwnerElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698