| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013, Google Inc. All rights reserved. | 2 * Copyright (c) 2013, 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 return new LayoutObjectProxy(node); | 275 return new LayoutObjectProxy(node); |
| 276 } | 276 } |
| 277 | 277 |
| 278 static void dispose(LayoutObjectProxy* proxy) | 278 static void dispose(LayoutObjectProxy* proxy) |
| 279 { | 279 { |
| 280 proxy->destroy(); | 280 proxy->destroy(); |
| 281 } | 281 } |
| 282 | 282 |
| 283 const char* name() const override { return nullptr; } | 283 const char* name() const override { return nullptr; } |
| 284 void layout() override { } | 284 void layout() override { } |
| 285 FloatRect localBoundingBoxRectForAccessibility() const { return FloatRect();
} |
| 285 | 286 |
| 286 private: | 287 private: |
| 287 explicit LayoutObjectProxy(Node* node) | 288 explicit LayoutObjectProxy(Node* node) |
| 288 : LayoutObject(node) | 289 : LayoutObject(node) |
| 289 { | 290 { |
| 290 } | 291 } |
| 291 }; | 292 }; |
| 292 | 293 |
| 293 // ----------------------------------------------------------------------- | 294 // ----------------------------------------------------------------------- |
| 294 // ----------------------------------------------------------------------- | 295 // ----------------------------------------------------------------------- |
| (...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1013 simulateFrame(1.); | 1014 simulateFrame(1.); |
| 1014 | 1015 |
| 1015 element->setLayoutObject(nullptr); | 1016 element->setLayoutObject(nullptr); |
| 1016 LayoutObjectProxy::dispose(layoutObject); | 1017 LayoutObjectProxy::dispose(layoutObject); |
| 1017 | 1018 |
| 1018 ThreadState::current()-> collectAllGarbage(); | 1019 ThreadState::current()-> collectAllGarbage(); |
| 1019 EXPECT_TRUE(element->elementAnimations()->animations().isEmpty()); | 1020 EXPECT_TRUE(element->elementAnimations()->animations().isEmpty()); |
| 1020 } | 1021 } |
| 1021 | 1022 |
| 1022 } // namespace blink | 1023 } // namespace blink |
| OLD | NEW |