OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 TopMargin = 0, | 55 TopMargin = 0, |
56 RightMargin = 1, | 56 RightMargin = 1, |
57 BottomMargin = 2, | 57 BottomMargin = 2, |
58 LeftMargin = 3 | 58 LeftMargin = 3 |
59 }; | 59 }; |
60 static PLATFORM_EXPORT IntRect inflateRect(const IntRect&, const IntSize&, c
onst int* margins, float zoomLevel = 1.0f); | 60 static PLATFORM_EXPORT IntRect inflateRect(const IntRect&, const IntSize&, c
onst int* margins, float zoomLevel = 1.0f); |
61 | 61 |
62 // Inflate an IntRect to account for any bleeding that would happen due to a
nti-aliasing. | 62 // Inflate an IntRect to account for any bleeding that would happen due to a
nti-aliasing. |
63 static PLATFORM_EXPORT IntRect inflateRectForAA(const IntRect&); | 63 static PLATFORM_EXPORT IntRect inflateRectForAA(const IntRect&); |
64 | 64 |
65 // Inflate an IntRect to account for its focus ring. This is only used when | 65 // Inflate an IntRect to account for its focus ring. |
66 // drawWithFrameDrawsFocusRing() returns true (otherwise, the focus ring's | 66 // TODO: Consider using computing the focus ring's bounds with |
67 // bounds could be accurately computed with -[NSCell focusRingMaskBoundsForF
rame:inView:]). | 67 // -[NSCell focusRingMaskBoundsForFrame:inView:]). |
68 static PLATFORM_EXPORT IntRect inflateRectForFocusRing(const IntRect&); | 68 static PLATFORM_EXPORT IntRect inflateRectForFocusRing(const IntRect&); |
69 | |
70 static PLATFORM_EXPORT bool drawWithFrameDrawsFocusRing(); | |
71 }; | 69 }; |
72 | 70 |
73 } // namespace blink | 71 } // namespace blink |
74 | 72 |
75 #endif // ThemeMac_h | 73 #endif // ThemeMac_h |
OLD | NEW |