| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 const QualifiedName& name, | 74 const QualifiedName& name, |
| 75 const AtomicString& value, | 75 const AtomicString& value, |
| 76 MutableStylePropertySet* style) { | 76 MutableStylePropertySet* style) { |
| 77 if (name == widthAttr) { | 77 if (name == widthAttr) { |
| 78 addHTMLLengthToStyle(style, CSSPropertyWidth, value); | 78 addHTMLLengthToStyle(style, CSSPropertyWidth, value); |
| 79 } else if (name == heightAttr) { | 79 } else if (name == heightAttr) { |
| 80 addHTMLLengthToStyle(style, CSSPropertyHeight, value); | 80 addHTMLLengthToStyle(style, CSSPropertyHeight, value); |
| 81 } else if (name == alignAttr) { | 81 } else if (name == alignAttr) { |
| 82 applyAlignmentAttributeToStyle(value, style); | 82 applyAlignmentAttributeToStyle(value, style); |
| 83 } else if (name == frameborderAttr) { | 83 } else if (name == frameborderAttr) { |
| 84 // LocalFrame border doesn't really match the HTML4 spec definition for ifra
mes. It simply adds | 84 // LocalFrame border doesn't really match the HTML4 spec definition for |
| 85 // a presentational hint that the border should be off if set to zero. | 85 // iframes. It simply adds a presentational hint that the border should be |
| 86 // off if set to zero. |
| 86 if (!value.toInt()) { | 87 if (!value.toInt()) { |
| 87 // Add a rule that nulls out our border width. | 88 // Add a rule that nulls out our border width. |
| 88 addPropertyToPresentationAttributeStyle( | 89 addPropertyToPresentationAttributeStyle( |
| 89 style, CSSPropertyBorderWidth, 0, | 90 style, CSSPropertyBorderWidth, 0, |
| 90 CSSPrimitiveValue::UnitType::Pixels); | 91 CSSPrimitiveValue::UnitType::Pixels); |
| 91 } | 92 } |
| 92 } else { | 93 } else { |
| 93 HTMLFrameElementBase::collectStyleForPresentationAttribute(name, value, | 94 HTMLFrameElementBase::collectStyleForPresentationAttribute(name, value, |
| 94 style); | 95 style); |
| 95 } | 96 } |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 bool HTMLIFrameElement::initializePermissionsAttribute() { | 198 bool HTMLIFrameElement::initializePermissionsAttribute() { |
| 198 if (!RuntimeEnabledFeatures::permissionDelegationEnabled()) | 199 if (!RuntimeEnabledFeatures::permissionDelegationEnabled()) |
| 199 return false; | 200 return false; |
| 200 | 201 |
| 201 if (!m_permissions) | 202 if (!m_permissions) |
| 202 m_permissions = HTMLIFrameElementPermissions::create(this); | 203 m_permissions = HTMLIFrameElementPermissions::create(this); |
| 203 return true; | 204 return true; |
| 204 } | 205 } |
| 205 | 206 |
| 206 } // namespace blink | 207 } // namespace blink |
| OLD | NEW |