-
andersca@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=84407 <rdar://problem/11011847> Reviewed by Dan Bernstein. Make it possible to override the focus ring visible rect from layer drawing code. * platform/graphics/mac/WebLayer.mm: (drawLayerContents): Call ThemeMac::setFocusRingClipRect to set the focus ring clip rect while drawing. * platform/mac/ThemeMac.h: * platform/mac/ThemeMac.mm: (-[WebCoreFlippedView _focusRingVisibleRect]): If there's an active focus ring visible rect, use it. Otherwise, fall back to the previous behavior and just return the view's visible rect. (WebCore::ThemeMac::setFocusRingClipRect): Update the focus clip rect. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114707 268f45cc-cd09-0410-ab3c-d52691b4dbfc
dd7e7dc4