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

Side by Side Diff: Source/core/page/Settings.h

Issue 14858004: Clean up the way layout tests force elements to opt in/out of composited scrolling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights reserved.
3 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 3 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 EditableLinkLiveWhenNotFocused, 49 EditableLinkLiveWhenNotFocused,
50 EditableLinkNeverLive 50 EditableLinkNeverLive
51 }; 51 };
52 52
53 enum TextDirectionSubmenuInclusionBehavior { 53 enum TextDirectionSubmenuInclusionBehavior {
54 TextDirectionSubmenuNeverIncluded, 54 TextDirectionSubmenuNeverIncluded,
55 TextDirectionSubmenuAutomaticallyIncluded, 55 TextDirectionSubmenuAutomaticallyIncluded,
56 TextDirectionSubmenuAlwaysIncluded 56 TextDirectionSubmenuAlwaysIncluded
57 }; 57 };
58 58
59 enum AcceleratedCompositingForOverflowScrollEnabledMode {
60 AcceleratedCompositingForOverflowScrollDisabled = 0,
61 AcceleratedCompositingForOverflowScrollEnabled = 1,
62 AcceleratedCompositingForOverflowScrollAlwaysOn = 2
63 };
64
59 // UScriptCode uses -1 and 0 for UScriptInvalidCode and UScriptCommon. 65 // UScriptCode uses -1 and 0 for UScriptInvalidCode and UScriptCommon.
60 // We need to use -2 and -3 for empty value and deleted value. 66 // We need to use -2 and -3 for empty value and deleted value.
61 struct UScriptCodeHashTraits : WTF::GenericHashTraits<int> { 67 struct UScriptCodeHashTraits : WTF::GenericHashTraits<int> {
62 static const bool emptyValueIsZero = false; 68 static const bool emptyValueIsZero = false;
63 static int emptyValue() { return -2; } 69 static int emptyValue() { return -2; }
64 static void constructDeletedValue(int& slot) { slot = -3; } 70 static void constructDeletedValue(int& slot) { slot = -3; }
65 static bool isDeletedValue(int value) { return value == -3; } 71 static bool isDeletedValue(int value) { return value == -3; }
66 }; 72 };
67 73
68 typedef HashMap<int, AtomicString, DefaultHash<int>::Hash, UScriptCodeHashTraits > ScriptFontFamilyMap; 74 typedef HashMap<int, AtomicString, DefaultHash<int>::Hash, UScriptCodeHashTraits > ScriptFontFamilyMap;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 Timer<Settings> m_setImageLoadingSettingsTimer; 205 Timer<Settings> m_setImageLoadingSettingsTimer;
200 void imageLoadingSettingsTimerFired(Timer<Settings>*); 206 void imageLoadingSettingsTimerFired(Timer<Settings>*);
201 207
202 static bool gMockScrollbarsEnabled; 208 static bool gMockScrollbarsEnabled;
203 static bool gUsesOverlayScrollbars; 209 static bool gUsesOverlayScrollbars;
204 }; 210 };
205 211
206 } // namespace WebCore 212 } // namespace WebCore
207 213
208 #endif // Settings_h 214 #endif // Settings_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698