| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 if (strokeStyle() != NoStroke) { | 609 if (strokeStyle() != NoStroke) { |
| 610 paint.reset(); | 610 paint.reset(); |
| 611 setupPaintForStroking(&paint); | 611 setupPaintForStroking(&paint); |
| 612 drawOval(rect, paint); | 612 drawOval(rect, paint); |
| 613 } | 613 } |
| 614 } | 614 } |
| 615 | 615 |
| 616 void GraphicsContext::drawFocusRing(const Path& focusRingPath, int width, int of
fset, const Color& color) | 616 void GraphicsContext::drawFocusRing(const Path& focusRingPath, int width, int of
fset, const Color& color) |
| 617 { | 617 { |
| 618 // FIXME: Implement support for offset. | 618 // FIXME: Implement support for offset. |
| 619 UNUSED_PARAM(offset); | |
| 620 | |
| 621 if (paintingDisabled()) | 619 if (paintingDisabled()) |
| 622 return; | 620 return; |
| 623 | 621 |
| 624 SkPaint paint; | 622 SkPaint paint; |
| 625 paint.setAntiAlias(true); | 623 paint.setAntiAlias(true); |
| 626 paint.setStyle(SkPaint::kStroke_Style); | 624 paint.setStyle(SkPaint::kStroke_Style); |
| 627 paint.setColor(color.rgb()); | 625 paint.setColor(color.rgb()); |
| 628 | 626 |
| 629 drawOuterPath(focusRingPath.skPath(), paint, width); | 627 drawOuterPath(focusRingPath.skPath(), paint, width); |
| 630 drawInnerPath(focusRingPath.skPath(), paint, width); | 628 drawInnerPath(focusRingPath.skPath(), paint, width); |
| (...skipping 1335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1966 | 1964 |
| 1967 void GraphicsContext::didDrawTextInRect(const SkRect& textRect) | 1965 void GraphicsContext::didDrawTextInRect(const SkRect& textRect) |
| 1968 { | 1966 { |
| 1969 if (m_trackTextRegion) { | 1967 if (m_trackTextRegion) { |
| 1970 TRACE_EVENT0("skia", "PlatformContextSkia::trackTextRegion"); | 1968 TRACE_EVENT0("skia", "PlatformContextSkia::trackTextRegion"); |
| 1971 m_textRegion.join(textRect); | 1969 m_textRegion.join(textRect); |
| 1972 } | 1970 } |
| 1973 } | 1971 } |
| 1974 | 1972 |
| 1975 } | 1973 } |
| OLD | NEW |