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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutVTTCue.h

Issue 2766943002: Do-not-commit: Count layout tree memory usage
Patch Set: Rebase, add object paint property counter Created 3 years, 8 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 /* 1 /*
2 * Copyright (C) 2012 Victor Carbune (victor@rosedu.org) 2 * Copyright (C) 2012 Victor Carbune (victor@rosedu.org)
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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 22 matching lines...) Expand all
33 class IntRect; 33 class IntRect;
34 34
35 class LayoutVTTCue final : public LayoutBlockFlow { 35 class LayoutVTTCue final : public LayoutBlockFlow {
36 public: 36 public:
37 LayoutVTTCue(ContainerNode*, float snapToLinesPosition); 37 LayoutVTTCue(ContainerNode*, float snapToLinesPosition);
38 38
39 // The computed line position for snap-to-lines layout, and NaN for 39 // The computed line position for snap-to-lines layout, and NaN for
40 // non-snap-to-lines layout where no adjustment should take place. 40 // non-snap-to-lines layout where no adjustment should take place.
41 float snapToLinesPosition() { return m_snapToLinesPosition; } 41 float snapToLinesPosition() { return m_snapToLinesPosition; }
42 42
43 char objectSize() const override { return sizeof(this); }
44
43 private: 45 private:
44 void layout() override; 46 void layout() override;
45 47
46 IntRect computeControlsRect() const; 48 IntRect computeControlsRect() const;
47 void repositionCueSnapToLinesNotSet(); 49 void repositionCueSnapToLinesNotSet();
48 50
49 float m_snapToLinesPosition; 51 float m_snapToLinesPosition;
50 }; 52 };
51 53
52 } // namespace blink 54 } // namespace blink
53 55
54 #endif // LayoutVTTCue_h 56 #endif // LayoutVTTCue_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTextTrackContainer.h ('k') | third_party/WebKit/Source/core/layout/LayoutVideo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698