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

Side by Side Diff: third_party/WebKit/Source/core/svg/graphics/SVGImage.h

Issue 1508223005: Client side display item cache flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Fix unit tests Created 4 years, 7 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) 2006 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org>
3 * Copyright (C) 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2009 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // thus also independent of current zoom level. 82 // thus also independent of current zoom level.
83 FloatSize concreteObjectSize(const FloatSize& defaultObjectSize) const; 83 FloatSize concreteObjectSize(const FloatSize& defaultObjectSize) const;
84 84
85 // DisplayItemClient methods. 85 // DisplayItemClient methods.
86 String debugName() const final { return "SVGImage"; } 86 String debugName() const final { return "SVGImage"; }
87 LayoutRect visualRect() const override; 87 LayoutRect visualRect() const override;
88 88
89 bool hasIntrinsicDimensions() const; 89 bool hasIntrinsicDimensions() const;
90 90
91 private: 91 private:
92 DISPLAY_ITEM_CACHE_STATUS_UNCACHEABLE_IMPLEMENTATION
chrishtr 2016/04/28 20:22:15 Why can't we cache SVGImage?
93
92 friend class AXLayoutObject; 94 friend class AXLayoutObject;
93 friend class SVGImageChromeClient; 95 friend class SVGImageChromeClient;
94 friend class SVGImageForContainer; 96 friend class SVGImageForContainer;
95 97
96 ~SVGImage() override; 98 ~SVGImage() override;
97 99
98 String filenameExtension() const override; 100 String filenameExtension() const override;
99 101
100 IntSize containerSize() const; 102 IntSize containerSize() const;
101 bool usesContainerSize() const override { return true; } 103 bool usesContainerSize() const override { return true; }
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 { 148 {
147 m_image->setImageObserverDisabled(false); 149 m_image->setImageObserverDisabled(false);
148 } 150 }
149 private: 151 private:
150 Image* m_image; 152 Image* m_image;
151 }; 153 };
152 154
153 } // namespace blink 155 } // namespace blink
154 156
155 #endif // SVGImage_h 157 #endif // SVGImage_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698