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

Side by Side Diff: sky/engine/core/html/TextMetrics.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/html/ImageData.h ('k') | sky/engine/core/html/VoidCallback.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*) { }
78
79 private: 77 private:
80 TextMetrics() 78 TextMetrics()
81 : m_width(0) 79 : m_width(0)
82 , m_actualBoundingBoxLeft(0) 80 , m_actualBoundingBoxLeft(0)
83 , m_actualBoundingBoxRight(0) 81 , m_actualBoundingBoxRight(0)
84 , m_fontBoundingBoxAscent(0) 82 , m_fontBoundingBoxAscent(0)
85 , m_fontBoundingBoxDescent(0) 83 , m_fontBoundingBoxDescent(0)
86 , m_actualBoundingBoxAscent(0) 84 , m_actualBoundingBoxAscent(0)
87 , m_actualBoundingBoxDescent(0) 85 , m_actualBoundingBoxDescent(0)
88 , m_emHeightAscent(0) 86 , m_emHeightAscent(0)
(...skipping 17 matching lines...) Expand all
106 float m_emHeightAscent; 104 float m_emHeightAscent;
107 float m_emHeightDescent; 105 float m_emHeightDescent;
108 float m_hangingBaseline; 106 float m_hangingBaseline;
109 float m_alphabeticBaseline; 107 float m_alphabeticBaseline;
110 float m_ideographicBaseline; 108 float m_ideographicBaseline;
111 }; 109 };
112 110
113 } // namespace blink 111 } // namespace blink
114 112
115 #endif // TextMetrics_h 113 #endif // TextMetrics_h
OLDNEW
« no previous file with comments | « sky/engine/core/html/ImageData.h ('k') | sky/engine/core/html/VoidCallback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698