| OLD | NEW |
| 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 Loading... |
| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 static WillBeHeapHashCountedSet<RawPtrWillBeMember<Node>>& disabledSubtreeRo
ots(); | 141 static WillBeHeapHashCountedSet<RawPtrWillBeMember<Node>>& disabledSubtreeRo
ots(); |
| 141 | 142 |
| 142 RawPtrWillBeMember<Node> m_root; | 143 RawPtrWillBeMember<Node> m_root; |
| 143 }; | 144 }; |
| 144 | 145 |
| 145 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow
ner.isLocal()); | 146 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow
ner.isLocal()); |
| 146 | 147 |
| 147 } // namespace blink | 148 } // namespace blink |
| 148 | 149 |
| 149 #endif // HTMLFrameOwnerElement_h | 150 #endif // HTMLFrameOwnerElement_h |
| OLD | NEW |