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

Side by Side Diff: third_party/WebKit/Source/platform/geometry/FloatSize.h

Issue 2650343008: Implement Element.scrollIntoView for scroll-behavior: smooth. (Closed)
Patch Set: Rebase Created 3 years, 6 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) 2003, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2005 Nokia. All rights reserved. 3 * Copyright (C) 2005 Nokia. All rights reserved.
4 * 2008 Eric Seidel <eric@webkit.org> 4 * 2008 Eric Seidel <eric@webkit.org>
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 return IntPoint(clampTo<int>(floorf(p.Width())), 192 return IntPoint(clampTo<int>(floorf(p.Width())),
193 clampTo<int>(floorf(p.Height()))); 193 clampTo<int>(floorf(p.Height())));
194 } 194 }
195 195
196 // Redeclared here to avoid ODR issues. 196 // Redeclared here to avoid ODR issues.
197 // See platform/testing/GeometryPrinters.h. 197 // See platform/testing/GeometryPrinters.h.
198 void PrintTo(const FloatSize&, std::ostream*); 198 void PrintTo(const FloatSize&, std::ostream*);
199 199
200 } // namespace blink 200 } // namespace blink
201 201
202 // Allows Oilpan to create objects with this class. See SmoothScrollSequencer.h
jbroman 2017/05/29 19:29:47 nit: It's a vector trait thing, specifically. Also
203 WTF_ALLOW_CLEAR_UNUSED_SLOTS_WITH_MEM_FUNCTIONS(blink::FloatSize);
204
202 #endif // FloatSize_h 205 #endif // FloatSize_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698