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

Side by Side Diff: Source/platform/geometry/IntRect.h

Issue 264713015: iPhone 5c marketing site repaints incorrectly with layer squashing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Moar const Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderView.h ('k') | Source/platform/geometry/IntRect.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) 2003, 2006, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2009 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 #if defined(__OBJC__) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 155 #if defined(__OBJC__) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)
156 operator NSRect() const; 156 operator NSRect() const;
157 #endif 157 #endif
158 #endif 158 #endif
159 159
160 operator SkRect() const; 160 operator SkRect() const;
161 operator SkIRect() const; 161 operator SkIRect() const;
162 162
163 #ifndef NDEBUG 163 #ifndef NDEBUG
164 // Prints the rect to the screen. 164 // Prints the rect to the screen.
165 void show(); 165 void show() const;
166 #endif 166 #endif
167 167
168 private: 168 private:
169 IntPoint m_location; 169 IntPoint m_location;
170 IntSize m_size; 170 IntSize m_size;
171 }; 171 };
172 172
173 inline IntRect intersection(const IntRect& a, const IntRect& b) 173 inline IntRect intersection(const IntRect& a, const IntRect& b)
174 { 174 {
175 IntRect c = a; 175 IntRect c = a;
(...skipping 23 matching lines...) Expand all
199 #if OS(MACOSX) 199 #if OS(MACOSX)
200 PLATFORM_EXPORT IntRect enclosingIntRect(const CGRect&); 200 PLATFORM_EXPORT IntRect enclosingIntRect(const CGRect&);
201 #if defined(__OBJC__) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 201 #if defined(__OBJC__) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)
202 PLATFORM_EXPORT IntRect enclosingIntRect(const NSRect&); 202 PLATFORM_EXPORT IntRect enclosingIntRect(const NSRect&);
203 #endif 203 #endif
204 #endif 204 #endif
205 205
206 } // namespace WebCore 206 } // namespace WebCore
207 207
208 #endif // IntRect_h 208 #endif // IntRect_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderView.h ('k') | Source/platform/geometry/IntRect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698