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

Side by Side Diff: Source/core/rendering/TextAutosizer.h

Issue 517043003: Move Frame to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Back out non-Oilpan experiment + tidy up by adding frame() ref accessors Created 6 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
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 TextAutosizer* m_textAutosizer; 75 TextAutosizer* m_textAutosizer;
76 RenderBlock* m_block; 76 RenderBlock* m_block;
77 }; 77 };
78 78
79 class TableLayoutScope : LayoutScope { 79 class TableLayoutScope : LayoutScope {
80 public: 80 public:
81 explicit TableLayoutScope(RenderTable*); 81 explicit TableLayoutScope(RenderTable*);
82 }; 82 };
83 83
84 class DeferUpdatePageInfo { 84 class DeferUpdatePageInfo {
85 STACK_ALLOCATED();
85 public: 86 public:
86 explicit DeferUpdatePageInfo(Page*); 87 explicit DeferUpdatePageInfo(Page*);
87 ~DeferUpdatePageInfo(); 88 ~DeferUpdatePageInfo();
88 private: 89 private:
89 RefPtr<LocalFrame> m_mainFrame; 90 RefPtrWillBeMember<LocalFrame> m_mainFrame;
90 }; 91 };
91 92
92 private: 93 private:
93 typedef HashSet<const RenderBlock*> BlockSet; 94 typedef HashSet<const RenderBlock*> BlockSet;
94 95
95 enum HasEnoughTextToAutosize { 96 enum HasEnoughTextToAutosize {
96 UnknownAmountOfText, 97 UnknownAmountOfText,
97 HasEnoughText, 98 HasEnoughText,
98 NotEnoughText 99 NotEnoughText
99 }; 100 };
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 FingerprintMapper m_fingerprintMapper; 304 FingerprintMapper m_fingerprintMapper;
304 Vector<RefPtr<RenderStyle> > m_stylesRetainedDuringLayout; 305 Vector<RefPtr<RenderStyle> > m_stylesRetainedDuringLayout;
305 // FIXME: All frames should share the same m_pageInfo instance. 306 // FIXME: All frames should share the same m_pageInfo instance.
306 PageInfo m_pageInfo; 307 PageInfo m_pageInfo;
307 bool m_updatePageInfoDeferred; 308 bool m_updatePageInfoDeferred;
308 }; 309 };
309 310
310 } // namespace blink 311 } // namespace blink
311 312
312 #endif // TextAutosizer_h 313 #endif // TextAutosizer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698