Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/WebKit/Source/core/animation/CompositorAnimationsTest.cpp

Issue 2324603002: Move AX local bounding box calculation into LayoutObject (Closed)
Patch Set: Rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBox.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698