Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: Source/core/html/HTMLImageElement.cpp

Issue 656723005: Use C++11 features in core/html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: mike's comments Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/html/HTMLFrameSetElement.cpp ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFrameSetElement.cpp ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698