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

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

Issue 1505713002: Include glyph overflow in SVG text bounding boxes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More expectations Created 5 years 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) Research In Motion Limited 2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 unsigned characterOffset; 63 unsigned characterOffset;
64 unsigned metricsListOffset; 64 unsigned metricsListOffset;
65 unsigned length : 31; 65 unsigned length : 31;
66 unsigned isTextOnPath : 1; 66 unsigned isTextOnPath : 1;
67 67
68 float x; 68 float x;
69 float y; 69 float y;
70 float width; 70 float width;
71 float height; 71 float height;
72 72
73 // Top and bottom are the amounts of glyph overflows exceeding the font metr ics' ascent and descent, respectively.
74 float glyphOverflowTop;
75 float glyphOverflowBottom;
76 // Left and right are the amounts of glyph overflows exceeding the left and right edge of normal layout boundary, respectively.
77 float glyphOverflowLeft;
78 float glyphOverflowRight;
79
73 // Includes rotation/glyph-orientation-(horizontal|vertical) transforms, as well as orientation related shifts 80 // Includes rotation/glyph-orientation-(horizontal|vertical) transforms, as well as orientation related shifts
74 // (see SVGTextLayoutEngine, which builds this transformation). 81 // (see SVGTextLayoutEngine, which builds this transformation).
75 AffineTransform transform; 82 AffineTransform transform;
76 83
77 // Contains lengthAdjust related transformations, which are not allowd to in fluence the SVGTextQuery code. 84 // Contains lengthAdjust related transformations, which are not allowd to in fluence the SVGTextQuery code.
78 AffineTransform lengthAdjustTransform; 85 AffineTransform lengthAdjustTransform;
79 86
80 private: 87 private:
81 void transformAroundOrigin(AffineTransform& result) const 88 void transformAroundOrigin(AffineTransform& result) const
82 { 89 {
(...skipping 21 matching lines...) Expand all
104 111
105 result = transform; 112 result = transform;
106 transformAroundOrigin(result); 113 transformAroundOrigin(result);
107 result.preMultiply(lengthAdjustTransform); 114 result.preMultiply(lengthAdjustTransform);
108 } 115 }
109 }; 116 };
110 117
111 } // namespace blink 118 } // namespace blink
112 119
113 #endif 120 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698