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 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
6 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved. |
7 * Copyright (C) 2009 Ericsson AB. All rights reserved. | 7 * Copyright (C) 2009 Ericsson AB. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "core/loader/FrameLoaderClient.h" | 33 #include "core/loader/FrameLoaderClient.h" |
34 #include "platform/graphics/GraphicsLayer.h" | 34 #include "platform/graphics/GraphicsLayer.h" |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 using namespace HTMLNames; | 38 using namespace HTMLNames; |
39 | 39 |
40 inline HTMLFrameletElement::HTMLFrameletElement(Document& document) | 40 inline HTMLFrameletElement::HTMLFrameletElement(Document& document) |
41 : HTMLElement(frameletTag, document) | 41 : HTMLElement(frameletTag, document) |
42 , m_webLayer(nullptr) | 42 , m_webLayer(nullptr) |
| 43 , m_bytesUsed(4242) // FIXME: Dummy value for testing with. |
| 44 , m_trackBytesUsed(true) |
43 { | 45 { |
44 } | 46 } |
45 | 47 |
46 DEFINE_NODE_FACTORY(HTMLFrameletElement) | 48 DEFINE_NODE_FACTORY(HTMLFrameletElement) |
47 | 49 |
48 HTMLFrameletElement::~HTMLFrameletElement() | 50 HTMLFrameletElement::~HTMLFrameletElement() |
49 { | 51 { |
50 } | 52 } |
51 | 53 |
| 54 void HTMLFrameletElement::setTrackBytesUsed(const WTF::String& val) |
| 55 { |
| 56 m_trackBytesUsed = val == "true"; |
| 57 } |
| 58 |
52 void HTMLFrameletElement::collectStyleForPresentationAttribute(const QualifiedNa
me& name, const AtomicString& value, MutableStylePropertySet* style) | 59 void HTMLFrameletElement::collectStyleForPresentationAttribute(const QualifiedNa
me& name, const AtomicString& value, MutableStylePropertySet* style) |
53 { | 60 { |
54 if (name == widthAttr) { | 61 if (name == widthAttr) { |
55 addHTMLLengthToStyle(style, CSSPropertyWidth, value); | 62 addHTMLLengthToStyle(style, CSSPropertyWidth, value); |
56 } else if (name == heightAttr) { | 63 } else if (name == heightAttr) { |
57 addHTMLLengthToStyle(style, CSSPropertyHeight, value); | 64 addHTMLLengthToStyle(style, CSSPropertyHeight, value); |
58 } else if (name == alignAttr) { | 65 } else if (name == alignAttr) { |
59 applyAlignmentAttributeToStyle(value, style); | 66 applyAlignmentAttributeToStyle(value, style); |
60 } else if (name == frameborderAttr) { | 67 } else if (name == frameborderAttr) { |
61 // LocalFrame border doesn't really match the HTML4 spec definition for
iframes. It simply adds | 68 // LocalFrame border doesn't really match the HTML4 spec definition for
iframes. It simply adds |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 if (m_webLayer) | 109 if (m_webLayer) |
103 GraphicsLayer::unregisterContentsLayer(m_webLayer); | 110 GraphicsLayer::unregisterContentsLayer(m_webLayer); |
104 m_webLayer = webLayer; | 111 m_webLayer = webLayer; |
105 if (m_webLayer) | 112 if (m_webLayer) |
106 GraphicsLayer::registerContentsLayer(m_webLayer); | 113 GraphicsLayer::registerContentsLayer(m_webLayer); |
107 | 114 |
108 setNeedsCompositingUpdate(); | 115 setNeedsCompositingUpdate(); |
109 } | 116 } |
110 | 117 |
111 } | 118 } |
OLD | NEW |