OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2008 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008 Apple Computer, Inc. All rights reserved. |
3 * Copyright (C) 2007-2008 Torch Mobile, Inc. | 3 * Copyright (C) 2007-2008 Torch Mobile, Inc. |
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 * | 8 * |
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 13 matching lines...) Expand all Loading... |
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
30 #ifndef FontCache_h | 30 #ifndef FontCache_h |
31 #define FontCache_h | 31 #define FontCache_h |
32 | 32 |
33 #include <limits.h> | 33 #include <limits.h> |
34 #include <wtf/Forward.h> | 34 #include "wtf/Forward.h" |
35 #include <wtf/PassRefPtr.h> | 35 #include "wtf/PassRefPtr.h" |
36 #include <wtf/RefPtr.h> | 36 #include "wtf/RefPtr.h" |
37 #include <wtf/Vector.h> | 37 #include "wtf/Vector.h" |
38 #include <wtf/text/WTFString.h> | 38 #include "wtf/text/WTFString.h" |
39 #include <wtf/unicode/Unicode.h> | 39 #include "wtf/unicode/Unicode.h" |
40 | 40 |
41 #if OS(WINDOWS) | 41 #if OS(WINDOWS) |
42 #include <windows.h> | 42 #include <windows.h> |
43 #include <objidl.h> | 43 #include <objidl.h> |
44 #include <mlang.h> | 44 #include <mlang.h> |
45 #endif | 45 #endif |
46 | 46 |
47 namespace WebCore { | 47 namespace WebCore { |
48 | 48 |
49 class Font; | 49 class Font; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 143 |
144 class FontCachePurgePreventer { | 144 class FontCachePurgePreventer { |
145 public: | 145 public: |
146 FontCachePurgePreventer() { fontCache()->disablePurging(); } | 146 FontCachePurgePreventer() { fontCache()->disablePurging(); } |
147 ~FontCachePurgePreventer() { fontCache()->enablePurging(); } | 147 ~FontCachePurgePreventer() { fontCache()->enablePurging(); } |
148 }; | 148 }; |
149 | 149 |
150 } | 150 } |
151 | 151 |
152 #endif | 152 #endif |
OLD | NEW |