OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 23 matching lines...) Expand all Loading... |
34 // platform-specific rendering differences due to themes, colors, etc. | 34 // platform-specific rendering differences due to themes, colors, etc. |
35 // | 35 // |
36 | 36 |
37 #include "WebTestThemeControlWin.h" | 37 #include "WebTestThemeControlWin.h" |
38 | 38 |
39 #include "TestCommon.h" | 39 #include "TestCommon.h" |
40 #include "skia/ext/skia_utils_win.h" | 40 #include "skia/ext/skia_utils_win.h" |
41 #include "third_party/skia/include/core/SkCanvas.h" | 41 #include "third_party/skia/include/core/SkCanvas.h" |
42 #include "third_party/skia/include/core/SkPaint.h" | 42 #include "third_party/skia/include/core/SkPaint.h" |
43 #include "third_party/skia/include/core/SkPath.h" | 43 #include "third_party/skia/include/core/SkPath.h" |
44 #include "third_party/skia/include/core/SkRect.h" | |
45 | 44 |
46 #include <algorithm> | 45 #include <algorithm> |
47 | 46 |
48 using namespace blink; | 47 using namespace blink; |
49 using namespace std; | 48 using namespace std; |
50 | 49 |
51 namespace WebTestRunner { | 50 namespace WebTestRunner { |
52 | 51 |
53 namespace { | 52 namespace { |
54 | 53 |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 SkIRect tofill; | 482 SkIRect tofill; |
484 tofill.intersect(m_irect, fillRect); | 483 tofill.intersect(m_irect, fillRect); |
485 paint.setColor(m_fgColor); | 484 paint.setColor(m_fgColor); |
486 paint.setStyle(SkPaint::kFill_Style); | 485 paint.setStyle(SkPaint::kFill_Style); |
487 m_canvas->drawIRect(tofill, paint); | 486 m_canvas->drawIRect(tofill, paint); |
488 | 487 |
489 markState(); | 488 markState(); |
490 } | 489 } |
491 | 490 |
492 } | 491 } |
OLD | NEW |