| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 RightMargin = 1, | 60 RightMargin = 1, |
| 61 BottomMargin = 2, | 61 BottomMargin = 2, |
| 62 LeftMargin = 3 | 62 LeftMargin = 3 |
| 63 }; | 63 }; |
| 64 static PLATFORM_EXPORT IntRect inflateRect(const IntRect&, const IntSize&, c
onst int* margins, float zoomLevel = 1.0f); | 64 static PLATFORM_EXPORT IntRect inflateRect(const IntRect&, const IntSize&, c
onst int* margins, float zoomLevel = 1.0f); |
| 65 | 65 |
| 66 // Inflate an IntRect to account for any bleeding that would happen due to a
nti-aliasing. | 66 // Inflate an IntRect to account for any bleeding that would happen due to a
nti-aliasing. |
| 67 static PLATFORM_EXPORT IntRect inflateRectForAA(const IntRect&); | 67 static PLATFORM_EXPORT IntRect inflateRectForAA(const IntRect&); |
| 68 | 68 |
| 69 // Inflate an IntRect to account for its focus ring. This is only used when | 69 // Inflate an IntRect to account for its focus ring. This is only used when |
| 70 // BUTTON_CELL_DRAW_WITH_FRAME_DRAWS_FOCUS_RING is defined (otherwise, the f
ocus ring's | 70 // drawWithFrameDrawsFocusRing() returns true (otherwise, the focus ring's |
| 71 // bounds could be accurately computed with -[NSCell focusRingMaskBoundsForF
rame:inView:]). | 71 // bounds could be accurately computed with -[NSCell focusRingMaskBoundsForF
rame:inView:]). |
| 72 static PLATFORM_EXPORT IntRect inflateRectForFocusRing(const IntRect&); | 72 static PLATFORM_EXPORT IntRect inflateRectForFocusRing(const IntRect&); |
| 73 |
| 74 static PLATFORM_EXPORT bool drawWithFrameDrawsFocusRing(); |
| 73 }; | 75 }; |
| 74 | 76 |
| 75 } // namespace blink | 77 } // namespace blink |
| 76 | 78 |
| 77 #endif // ThemeMac_h | 79 #endif // ThemeMac_h |
| OLD | NEW |