| 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 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights |
| 5 * reserved. | 5 * reserved. |
| 6 * Copyright (C) 2010 Google Inc. All rights reserved. | 6 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 bool HTMLImageElement::HasLegalLinkAttribute(const QualifiedName& name) const { | 548 bool HTMLImageElement::HasLegalLinkAttribute(const QualifiedName& name) const { |
| 549 return name == srcAttr || HTMLElement::HasLegalLinkAttribute(name); | 549 return name == srcAttr || HTMLElement::HasLegalLinkAttribute(name); |
| 550 } | 550 } |
| 551 | 551 |
| 552 const QualifiedName& HTMLImageElement::SubResourceAttributeName() const { | 552 const QualifiedName& HTMLImageElement::SubResourceAttributeName() const { |
| 553 return srcAttr; | 553 return srcAttr; |
| 554 } | 554 } |
| 555 | 555 |
| 556 bool HTMLImageElement::draggable() const { | 556 bool HTMLImageElement::draggable() const { |
| 557 // Image elements are draggable by default. | 557 // Image elements are draggable by default. |
| 558 return !EqualIgnoringCase(getAttribute(draggableAttr), "false"); | 558 return !DeprecatedEqualIgnoringCase(getAttribute(draggableAttr), "false"); |
| 559 } | 559 } |
| 560 | 560 |
| 561 void HTMLImageElement::setHeight(unsigned value) { | 561 void HTMLImageElement::setHeight(unsigned value) { |
| 562 SetUnsignedIntegralAttribute(heightAttr, value); | 562 SetUnsignedIntegralAttribute(heightAttr, value); |
| 563 } | 563 } |
| 564 | 564 |
| 565 KURL HTMLImageElement::Src() const { | 565 KURL HTMLImageElement::Src() const { |
| 566 return GetDocument().CompleteURL(getAttribute(srcAttr)); | 566 return GetDocument().CompleteURL(getAttribute(srcAttr)); |
| 567 } | 567 } |
| 568 | 568 |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 850 form_->Associate(*this); | 850 form_->Associate(*this); |
| 851 form_->DidAssociateByParser(); | 851 form_->DidAssociateByParser(); |
| 852 } | 852 } |
| 853 }; | 853 }; |
| 854 | 854 |
| 855 FloatSize HTMLImageElement::SourceDefaultObjectSize() { | 855 FloatSize HTMLImageElement::SourceDefaultObjectSize() { |
| 856 return FloatSize(width(), height()); | 856 return FloatSize(width(), height()); |
| 857 } | 857 } |
| 858 | 858 |
| 859 } // namespace blink | 859 } // namespace blink |
| OLD | NEW |