| 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 reserv
ed. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv
ed. |
| 5 * Copyright (C) 2010 Google Inc. All rights reserved. | 5 * Copyright (C) 2010 Google 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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 // If the usemap attribute starts with '#', it refers to a map element in th
e document. | 544 // If the usemap attribute starts with '#', it refers to a map element in th
e document. |
| 545 if (usemap[0] == '#') | 545 if (usemap[0] == '#') |
| 546 return false; | 546 return false; |
| 547 | 547 |
| 548 return document().completeURL(stripLeadingAndTrailingHTMLSpaces(usemap)).isE
mpty(); | 548 return document().completeURL(stripLeadingAndTrailingHTMLSpaces(usemap)).isE
mpty(); |
| 549 } | 549 } |
| 550 | 550 |
| 551 Image* HTMLImageElement::imageContents() | 551 Image* HTMLImageElement::imageContents() |
| 552 { | 552 { |
| 553 if (!imageLoader().imageComplete()) | 553 if (!imageLoader().imageComplete()) |
| 554 return 0; | 554 return nullptr; |
| 555 | 555 |
| 556 return imageLoader().image()->image(); | 556 return imageLoader().image()->image(); |
| 557 } | 557 } |
| 558 | 558 |
| 559 bool HTMLImageElement::isInteractiveContent() const | 559 bool HTMLImageElement::isInteractiveContent() const |
| 560 { | 560 { |
| 561 return fastHasAttribute(usemapAttr); | 561 return fastHasAttribute(usemapAttr); |
| 562 } | 562 } |
| 563 | 563 |
| 564 PassRefPtr<Image> HTMLImageElement::getSourceImageForCanvas(SourceImageMode, Sou
rceImageStatus* status) const | 564 PassRefPtr<Image> HTMLImageElement::getSourceImageForCanvas(SourceImageMode, Sou
rceImageStatus* status) const |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 } | 646 } |
| 647 imageLoader().updateFromElement(behavior); | 647 imageLoader().updateFromElement(behavior); |
| 648 } | 648 } |
| 649 | 649 |
| 650 const KURL& HTMLImageElement::sourceURL() const | 650 const KURL& HTMLImageElement::sourceURL() const |
| 651 { | 651 { |
| 652 return cachedImage()->response().url(); | 652 return cachedImage()->response().url(); |
| 653 } | 653 } |
| 654 | 654 |
| 655 } | 655 } |
| OLD | NEW |