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

Side by Side Diff: tracing/tracing/extras/chrome/layout_object.html

Issue 2771723003: [tracing] Move math utilities from base into their own subdirectory (attempt 2) (Closed)
Patch Set: rebase Created 3 years, 9 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2015 The Chromium Authors. All rights reserved. 3 Copyright (c) 2015 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link rel="import" href="/tracing/base/base.html"> 8 <link rel="import" href="/tracing/base/base.html">
9 9
10 <script> 10 <script>
(...skipping 28 matching lines...) Expand all
39 width: 1 39 width: 1
40 }; 40 };
41 41
42 function LayoutObject(snapshot, args) { 42 function LayoutObject(snapshot, args) {
43 this.snapshot_ = snapshot; 43 this.snapshot_ = snapshot;
44 this.id_ = args.address; 44 this.id_ = args.address;
45 this.name_ = args.name; 45 this.name_ = args.name;
46 this.childLayoutObjects_ = []; 46 this.childLayoutObjects_ = [];
47 this.otherProperties_ = {}; 47 this.otherProperties_ = {};
48 this.tag_ = args.tag; 48 this.tag_ = args.tag;
49 this.relativeRect_ = tr.b.Rect.fromXYWH( 49 this.relativeRect_ = tr.b.math.Rect.fromXYWH(
50 args.relX, args.relY, args.width, args.height); 50 args.relX, args.relY, args.width, args.height);
51 this.absoluteRect_ = tr.b.Rect.fromXYWH( 51 this.absoluteRect_ = tr.b.math.Rect.fromXYWH(
52 args.absX, args.absY, args.width, args.height); 52 args.absX, args.absY, args.width, args.height);
53 this.isFloat_ = args.float; 53 this.isFloat_ = args.float;
54 this.isStickyPositioned_ = args.stickyPositioned; 54 this.isStickyPositioned_ = args.stickyPositioned;
55 this.isPositioned_ = args.positioned; 55 this.isPositioned_ = args.positioned;
56 this.isRelativePositioned_ = args.relativePositioned; 56 this.isRelativePositioned_ = args.relativePositioned;
57 this.isAnonymous_ = args.anonymous; 57 this.isAnonymous_ = args.anonymous;
58 this.htmlId_ = args.htmlId; 58 this.htmlId_ = args.htmlId;
59 this.classNames_ = args.classNames; 59 this.classNames_ = args.classNames;
60 this.needsLayoutReasons_ = []; 60 this.needsLayoutReasons_ = [];
61 if (args.selfNeeds) 61 if (args.selfNeeds)
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 return undefined; 196 return undefined;
197 return this.snapshot.nextSnapshot.getLayoutObjectById(this.id); 197 return this.snapshot.nextSnapshot.getLayoutObjectById(this.id);
198 } 198 }
199 }; 199 };
200 200
201 return { 201 return {
202 LayoutObject, 202 LayoutObject,
203 }; 203 };
204 }); 204 });
205 </script> 205 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/extras/chrome/estimated_input_latency_test.html ('k') | tracing/tracing/extras/cpu/cpu_usage_auditor.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698