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

Side by Side Diff: Source/core/page/WindowFeatures.cpp

Issue 25494003: Move geometry classes from core/platform/graphics to platform/geometry (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Harri Porten (porten@kde.org) 2 * Copyright (C) 2000 Harri Porten (porten@kde.org)
3 * Copyright (C) 2006 Jon Shier (jshier@iastate.edu) 3 * Copyright (C) 2006 Jon Shier (jshier@iastate.edu)
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights resev ed. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights resev ed.
5 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
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 Lesser General Public 8 * modify it under the terms of the GNU Lesser 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.
11 * 11 *
12 * This library is distributed in the hope that it will be useful, 12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details. 15 * Lesser General Public License for more details.
16 * 16 *
17 * You should have received a copy of the GNU Lesser General Public 17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software 18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
20 * USA 20 * USA
21 */ 21 */
22 22
23 #include "config.h" 23 #include "config.h"
24 #include "core/page/WindowFeatures.h" 24 #include "core/page/WindowFeatures.h"
25 25
26 #include "core/platform/graphics/FloatRect.h" 26 #include "platform/geometry/FloatRect.h"
27 #include "wtf/Assertions.h" 27 #include "wtf/Assertions.h"
28 #include "wtf/MathExtras.h" 28 #include "wtf/MathExtras.h"
29 #include "wtf/text/StringHash.h" 29 #include "wtf/text/StringHash.h"
30 30
31 namespace WebCore { 31 namespace WebCore {
32 32
33 // Though isspace() considers \t and \v to be whitespace, Win IE doesn't when pa rsing window features. 33 // Though isspace() considers \t and \v to be whitespace, Win IE doesn't when pa rsing window features.
34 static bool isWindowFeaturesSeparator(UChar c) 34 static bool isWindowFeaturesSeparator(UChar c)
35 { 35 {
36 return c == ' ' || c == '\t' || c == '\n' || c == '\r' || c == '=' || c == ' ,' || c == '\0'; 36 return c == ' ' || c == '\t' || c == '\n' || c == '\r' || c == '=' || c == ' ,' || c == '\0';
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 if (separatorPosition != kNotFound) { 256 if (separatorPosition != kNotFound) {
257 value = featureString.substring(separatorPosition + 1).stripWhiteSpa ce().lower(); 257 value = featureString.substring(separatorPosition + 1).stripWhiteSpa ce().lower();
258 value = value.left(value.find(' ')); 258 value = value.left(value.find(' '));
259 } 259 }
260 260
261 map.set(key, value); 261 map.set(key, value);
262 } 262 }
263 } 263 }
264 264
265 } // namespace WebCore 265 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/TouchAdjustment.cpp ('k') | Source/core/page/animation/CSSPropertyAnimation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698