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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSImageSetValue.h

Issue 2795173002: Do not show image placeholders for CSS sprites (Closed)
Patch Set: Added layout test expected result Created 3 years, 8 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) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 25 matching lines...) Expand all
36 class Document; 36 class Document;
37 class StyleImage; 37 class StyleImage;
38 38
39 class CSSImageSetValue : public CSSValueList { 39 class CSSImageSetValue : public CSSValueList {
40 public: 40 public:
41 static CSSImageSetValue* create() { return new CSSImageSetValue(); } 41 static CSSImageSetValue* create() { return new CSSImageSetValue(); }
42 ~CSSImageSetValue(); 42 ~CSSImageSetValue();
43 43
44 bool isCachePending(float deviceScaleFactor) const; 44 bool isCachePending(float deviceScaleFactor) const;
45 StyleImage* cachedImage(float deviceScaleFactor) const; 45 StyleImage* cachedImage(float deviceScaleFactor) const;
46 StyleImage* cacheImage( 46 StyleImage* cacheImage(const Document&,
47 const Document&, 47 float deviceScaleFactor,
48 float deviceScaleFactor, 48 CrossOriginAttributeValue = CrossOriginAttributeNotSet,
49 CrossOriginAttributeValue = CrossOriginAttributeNotSet); 49 bool allowImagePlaceholder = false);
kouhei (in TOK) 2017/04/11 07:45:59 Can we take ImagePlaceHolderRequestType? https:/
Raj 2017/04/20 19:01:17 Done.
50 50
51 String customCSSText() const; 51 String customCSSText() const;
52 52
53 struct ImageWithScale { 53 struct ImageWithScale {
54 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 54 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
55 String imageURL; 55 String imageURL;
56 Referrer referrer; 56 Referrer referrer;
57 float scaleFactor; 57 float scaleFactor;
58 }; 58 };
59 59
(...skipping 19 matching lines...) Expand all
79 Member<StyleImage> m_cachedImage; 79 Member<StyleImage> m_cachedImage;
80 80
81 Vector<ImageWithScale> m_imagesInSet; 81 Vector<ImageWithScale> m_imagesInSet;
82 }; 82 };
83 83
84 DEFINE_CSS_VALUE_TYPE_CASTS(CSSImageSetValue, isImageSetValue()); 84 DEFINE_CSS_VALUE_TYPE_CASTS(CSSImageSetValue, isImageSetValue());
85 85
86 } // namespace blink 86 } // namespace blink
87 87
88 #endif // CSSImageSetValue_h 88 #endif // CSSImageSetValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698