Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/frame/VisualViewport.h" | 5 #include "core/frame/VisualViewport.h" |
| 6 | 6 |
| 7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
| 8 #include "core/frame/BrowserControls.h" | 8 #include "core/frame/BrowserControls.h" |
| 9 #include "core/frame/FrameHost.h" | 9 #include "core/frame/FrameHost.h" |
| 10 #include "core/frame/FrameView.h" | 10 #include "core/frame/FrameView.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 58 EXPECT_EQ((expected).x(), (actual).x()); \ | 58 EXPECT_EQ((expected).x(), (actual).x()); \ |
| 59 EXPECT_EQ((expected).y(), (actual).y()); \ | 59 EXPECT_EQ((expected).y(), (actual).y()); \ |
| 60 } while (false) | 60 } while (false) |
| 61 | 61 |
| 62 #define EXPECT_FLOAT_POINT_EQ(expected, actual) \ | 62 #define EXPECT_FLOAT_POINT_EQ(expected, actual) \ |
| 63 do { \ | 63 do { \ |
| 64 EXPECT_FLOAT_EQ((expected).x(), (actual).x()); \ | 64 EXPECT_FLOAT_EQ((expected).x(), (actual).x()); \ |
| 65 EXPECT_FLOAT_EQ((expected).y(), (actual).y()); \ | 65 EXPECT_FLOAT_EQ((expected).y(), (actual).y()); \ |
| 66 } while (false) | 66 } while (false) |
| 67 | 67 |
| 68 #define EXPECT_POINT_EQ(expected, actual) \ | |
| 69 do { \ | |
| 70 EXPECT_EQ((expected).x(), (actual).x()); \ | |
| 71 EXPECT_EQ((expected).y(), (actual).y()); \ | |
| 72 } while (false) | |
| 73 | |
|
Łukasz Anforowicz
2017/01/26 18:01:05
Identical macro definition is on line 56 above. :-
| |
| 74 #define EXPECT_SIZE_EQ(expected, actual) \ | 68 #define EXPECT_SIZE_EQ(expected, actual) \ |
| 75 do { \ | 69 do { \ |
| 76 EXPECT_EQ((expected).width(), (actual).width()); \ | 70 EXPECT_EQ((expected).width(), (actual).width()); \ |
| 77 EXPECT_EQ((expected).height(), (actual).height()); \ | 71 EXPECT_EQ((expected).height(), (actual).height()); \ |
| 78 } while (false) | 72 } while (false) |
| 79 | 73 |
| 80 #define EXPECT_FLOAT_SIZE_EQ(expected, actual) \ | 74 #define EXPECT_FLOAT_SIZE_EQ(expected, actual) \ |
| 81 do { \ | 75 do { \ |
| 82 EXPECT_FLOAT_EQ((expected).width(), (actual).width()); \ | 76 EXPECT_FLOAT_EQ((expected).width(), (actual).width()); \ |
| 83 EXPECT_FLOAT_EQ((expected).height(), (actual).height()); \ | 77 EXPECT_FLOAT_EQ((expected).height(), (actual).height()); \ |
| (...skipping 2387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2471 " body {" | 2465 " body {" |
| 2472 " margin: 0px;" | 2466 " margin: 0px;" |
| 2473 " }" | 2467 " }" |
| 2474 " div { height:110vh; width: 110vw; }" | 2468 " div { height:110vh; width: 110vw; }" |
| 2475 "</style>" | 2469 "</style>" |
| 2476 "<div></div>", | 2470 "<div></div>", |
| 2477 baseURL); | 2471 baseURL); |
| 2478 } | 2472 } |
| 2479 | 2473 |
| 2480 } // namespace | 2474 } // namespace |
| OLD | NEW |