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

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

Issue 337113005: Reduce forward declarations in core/rendering (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 20 matching lines...) Expand all
31 #include "wtf/HashMap.h" 31 #include "wtf/HashMap.h"
32 #include "wtf/Noncopyable.h" 32 #include "wtf/Noncopyable.h"
33 #include "wtf/OwnPtr.h" 33 #include "wtf/OwnPtr.h"
34 #include "wtf/PassOwnPtr.h" 34 #include "wtf/PassOwnPtr.h"
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 class Document; 38 class Document;
39 class RenderBlock; 39 class RenderBlock;
40 class RenderObject; 40 class RenderObject;
41 class RenderText;
42 struct TextAutosizingWindowInfo; 41 struct TextAutosizingWindowInfo;
43 42
44 // Represents cluster related data. Instances should not persist between calls t o processSubtree. 43 // Represents cluster related data. Instances should not persist between calls t o processSubtree.
45 struct TextAutosizingClusterInfo { 44 struct TextAutosizingClusterInfo {
46 explicit TextAutosizingClusterInfo(RenderBlock* root) 45 explicit TextAutosizingClusterInfo(RenderBlock* root)
47 : root(root) 46 : root(root)
48 , blockContainingAllText(0) 47 , blockContainingAllText(0)
49 , maxAllowedDifferenceFromTextWidth(150) 48 , maxAllowedDifferenceFromTextWidth(150)
50 { 49 {
51 } 50 }
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 138
140 // Mapping from a cluster hash to the corresponding cluster infos which have not been autosized yet. 139 // Mapping from a cluster hash to the corresponding cluster infos which have not been autosized yet.
141 HashMap<unsigned, OwnPtr<Vector<TextAutosizingClusterInfo> > > m_nonAutosize dClusters; 140 HashMap<unsigned, OwnPtr<Vector<TextAutosizingClusterInfo> > > m_nonAutosize dClusters;
142 141
143 bool m_previouslyAutosized; 142 bool m_previouslyAutosized;
144 }; 143 };
145 144
146 } // namespace WebCore 145 } // namespace WebCore
147 146
148 #endif // TextAutosizer_h 147 #endif // TextAutosizer_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderVideo.h ('k') | Source/core/rendering/compositing/CompositingRequirementsUpdater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698