OLD | NEW |
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) 2000 Simon Hausmann <hausmann@kde.org> | 4 * (C) 2000 Simon Hausmann <hausmann@kde.org> |
5 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 23 matching lines...) Expand all Loading... |
34 DEFINE_WRAPPERTYPEINFO(); | 34 DEFINE_WRAPPERTYPEINFO(); |
35 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLFrameletElement); | 35 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLFrameletElement); |
36 | 36 |
37 public: | 37 public: |
38 DECLARE_NODE_FACTORY(HTMLFrameletElement); | 38 DECLARE_NODE_FACTORY(HTMLFrameletElement); |
39 ~HTMLFrameletElement() override; | 39 ~HTMLFrameletElement() override; |
40 | 40 |
41 BLINK_EXPORT void setWebLayer(WebLayer*); | 41 BLINK_EXPORT void setWebLayer(WebLayer*); |
42 WebLayer* webLayer() { return m_webLayer; } | 42 WebLayer* webLayer() { return m_webLayer; } |
43 | 43 |
| 44 WTF::String bytesUsed() const { return WTF::String::number(m_bytesUsed); } |
| 45 WTF::String trackBytesUsed() const { return m_trackBytesUsed ? WTF::String("
true") : WTF::String("false"); } |
| 46 void setTrackBytesUsed(const WTF::String& val); |
| 47 |
44 // Node overrides | 48 // Node overrides |
45 bool isFrameletElement() const override { return true; } | 49 bool isFrameletElement() const override { return true; } |
46 | 50 |
47 private: | 51 private: |
48 explicit HTMLFrameletElement(Document&); | 52 explicit HTMLFrameletElement(Document&); |
49 | 53 |
50 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS
tring&) override; | 54 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS
tring&) override; |
51 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic
String&, MutableStylePropertySet*) override; | 55 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic
String&, MutableStylePropertySet*) override; |
52 | 56 |
53 bool layoutObjectIsNeeded(const ComputedStyle&) override; | 57 bool layoutObjectIsNeeded(const ComputedStyle&) override; |
54 LayoutObject* createLayoutObject(const ComputedStyle&) override; | 58 LayoutObject* createLayoutObject(const ComputedStyle&) override; |
55 | 59 |
56 bool isInteractiveContent() const override { return true; } | 60 bool isInteractiveContent() const override { return true; } |
57 | 61 |
58 Node::InsertionNotificationRequest insertedInto(ContainerNode* insertionPoin
t) override; | 62 Node::InsertionNotificationRequest insertedInto(ContainerNode* insertionPoin
t) override; |
59 void didNotifySubtreeInsertionsToDocument() final; | 63 void didNotifySubtreeInsertionsToDocument() final; |
60 | 64 |
61 WebLayer* m_webLayer; | 65 WebLayer* m_webLayer; |
| 66 int m_bytesUsed; |
| 67 bool m_trackBytesUsed; |
62 }; | 68 }; |
63 | 69 |
64 } // namespace blink | 70 } // namespace blink |
65 | 71 |
66 #endif // HTMLFrameletElement_h | 72 #endif // HTMLFrameletElement_h |
OLD | NEW |