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

Side by Side Diff: Source/core/html/TextMetrics.h

Issue 932403002: InlinedVisitor: Migrate html to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/PublicURLManager.cpp ('k') | Source/core/html/TimeRanges.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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple 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 * 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 float hangingBaseline() const { return m_hangingBaseline; } 68 float hangingBaseline() const { return m_hangingBaseline; }
69 void setHangingBaseline(float hangingBaseline) { m_hangingBaseline = hanging Baseline; } 69 void setHangingBaseline(float hangingBaseline) { m_hangingBaseline = hanging Baseline; }
70 70
71 float alphabeticBaseline() const { return m_alphabeticBaseline; } 71 float alphabeticBaseline() const { return m_alphabeticBaseline; }
72 void setAlphabeticBaseline(float alphabeticBaseline) { m_alphabeticBaseline = alphabeticBaseline; } 72 void setAlphabeticBaseline(float alphabeticBaseline) { m_alphabeticBaseline = alphabeticBaseline; }
73 73
74 float ideographicBaseline() const { return m_ideographicBaseline; } 74 float ideographicBaseline() const { return m_ideographicBaseline; }
75 void setIdeographicBaseline(float ideographicBaseline) { m_ideographicBaseli ne = ideographicBaseline; } 75 void setIdeographicBaseline(float ideographicBaseline) { m_ideographicBaseli ne = ideographicBaseline; }
76 76
77 void trace(Visitor*) { } 77 DEFINE_INLINE_TRACE() { }
78 78
79 private: 79 private:
80 TextMetrics() 80 TextMetrics()
81 : m_width(0) 81 : m_width(0)
82 , m_actualBoundingBoxLeft(0) 82 , m_actualBoundingBoxLeft(0)
83 , m_actualBoundingBoxRight(0) 83 , m_actualBoundingBoxRight(0)
84 , m_fontBoundingBoxAscent(0) 84 , m_fontBoundingBoxAscent(0)
85 , m_fontBoundingBoxDescent(0) 85 , m_fontBoundingBoxDescent(0)
86 , m_actualBoundingBoxAscent(0) 86 , m_actualBoundingBoxAscent(0)
87 , m_actualBoundingBoxDescent(0) 87 , m_actualBoundingBoxDescent(0)
(...skipping 16 matching lines...) Expand all
104 float m_emHeightAscent; 104 float m_emHeightAscent;
105 float m_emHeightDescent; 105 float m_emHeightDescent;
106 float m_hangingBaseline; 106 float m_hangingBaseline;
107 float m_alphabeticBaseline; 107 float m_alphabeticBaseline;
108 float m_ideographicBaseline; 108 float m_ideographicBaseline;
109 }; 109 };
110 110
111 } // namespace blink 111 } // namespace blink
112 112
113 #endif // TextMetrics_h 113 #endif // TextMetrics_h
OLDNEW
« no previous file with comments | « Source/core/html/PublicURLManager.cpp ('k') | Source/core/html/TimeRanges.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698