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

Side by Side Diff: third_party/WebKit/Source/core/loader/ImageLoader.cpp

Issue 2589143003: Add 'get' prefix for Settings.in generated code. (Closed)
Patch Set: Capitalize the prefix. Created 3 years, 12 months 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
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, 2009, 2010 Apple Inc. All rights 4 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010 Apple Inc. All rights
5 * reserved. 5 * 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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 308
309 if (isHTMLPictureElement(element()->parentNode()) || 309 if (isHTMLPictureElement(element()->parentNode()) ||
310 !element()->fastGetAttribute(HTMLNames::srcsetAttr).isNull()) 310 !element()->fastGetAttribute(HTMLNames::srcsetAttr).isNull())
311 resourceRequest.setRequestContext(WebURLRequest::RequestContextImageSet); 311 resourceRequest.setRequestContext(WebURLRequest::RequestContextImageSet);
312 FetchRequest request(resourceRequest, element()->localName(), 312 FetchRequest request(resourceRequest, element()->localName(),
313 resourceLoaderOptions); 313 resourceLoaderOptions);
314 configureRequest(request, bypassBehavior, *m_element, 314 configureRequest(request, bypassBehavior, *m_element,
315 document.clientHintsPreferences()); 315 document.clientHintsPreferences());
316 316
317 if (updateBehavior != UpdateForcedReload && document.settings() && 317 if (updateBehavior != UpdateForcedReload && document.settings() &&
318 document.settings()->fetchImagePlaceholders()) { 318 document.settings()->GetFEtchImagePlaceholders()) {
319 request.setAllowImagePlaceholder(); 319 request.setAllowImagePlaceholder();
320 } 320 }
321 321
322 newImage = ImageResourceContent::fetch(request, document.fetcher()); 322 newImage = ImageResourceContent::fetch(request, document.fetcher());
323 323
324 if (!newImage && !pageIsBeingDismissed(&document)) { 324 if (!newImage && !pageIsBeingDismissed(&document)) {
325 crossSiteOrCSPViolationOccurred(imageSourceURL); 325 crossSiteOrCSPViolationOccurred(imageSourceURL);
326 dispatchErrorEvent(); 326 dispatchErrorEvent();
327 } else { 327 } else {
328 clearFailedLoadURL(); 328 clearFailedLoadURL();
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 // Only consider updating the protection ref-count of the Element immediately 615 // Only consider updating the protection ref-count of the Element immediately
616 // before returning from this function as doing so might result in the 616 // before returning from this function as doing so might result in the
617 // destruction of this ImageLoader. 617 // destruction of this ImageLoader.
618 updatedHasPendingEvent(); 618 updatedHasPendingEvent();
619 } 619 }
620 620
621 bool ImageLoader::getImageAnimationPolicy(ImageAnimationPolicy& policy) { 621 bool ImageLoader::getImageAnimationPolicy(ImageAnimationPolicy& policy) {
622 if (!element()->document().settings()) 622 if (!element()->document().settings())
623 return false; 623 return false;
624 624
625 policy = element()->document().settings()->imageAnimationPolicy(); 625 policy = element()->document().settings()->GetImageAnimationPolicy();
626 return true; 626 return true;
627 } 627 }
628 628
629 void ImageLoader::dispatchPendingLoadEvents() { 629 void ImageLoader::dispatchPendingLoadEvents() {
630 loadEventSender().dispatchPendingEvents(); 630 loadEventSender().dispatchPendingEvents();
631 } 631 }
632 632
633 void ImageLoader::dispatchPendingErrorEvents() { 633 void ImageLoader::dispatchPendingErrorEvents() {
634 errorEventSender().dispatchPendingEvents(); 634 errorEventSender().dispatchPendingEvents();
635 } 635 }
636 636
637 void ImageLoader::elementDidMoveToNewDocument() { 637 void ImageLoader::elementDidMoveToNewDocument() {
638 if (m_loadDelayCounter) 638 if (m_loadDelayCounter)
639 m_loadDelayCounter->documentChanged(m_element->document()); 639 m_loadDelayCounter->documentChanged(m_element->document());
640 clearFailedLoadURL(); 640 clearFailedLoadURL();
641 setImage(0); 641 setImage(0);
642 } 642 }
643 643
644 } // namespace blink 644 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698