OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2007 Rob Buis <buis@kde.org> |
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 const ComputedStyle&, | 235 const ComputedStyle&, |
236 const Font&, | 236 const Font&, |
237 bool) const { | 237 bool) const { |
238 // SVG does not have support for generic document markers (e.g., | 238 // SVG does not have support for generic document markers (e.g., |
239 // spellchecking, etc). | 239 // spellchecking, etc). |
240 } | 240 } |
241 | 241 |
242 void SVGInlineTextBox::PaintTextMatchMarkerForeground( | 242 void SVGInlineTextBox::PaintTextMatchMarkerForeground( |
243 const PaintInfo& paint_info, | 243 const PaintInfo& paint_info, |
244 const LayoutPoint& point, | 244 const LayoutPoint& point, |
245 const DocumentMarker& marker, | 245 const TextMatchMarker& marker, |
246 const ComputedStyle& style, | 246 const ComputedStyle& style, |
247 const Font& font) const { | 247 const Font& font) const { |
248 SVGInlineTextBoxPainter(*this).PaintTextMatchMarkerForeground( | 248 SVGInlineTextBoxPainter(*this).PaintTextMatchMarkerForeground( |
249 paint_info, point, marker, style, font); | 249 paint_info, point, marker, style, font); |
250 } | 250 } |
251 | 251 |
252 void SVGInlineTextBox::PaintTextMatchMarkerBackground( | 252 void SVGInlineTextBox::PaintTextMatchMarkerBackground( |
253 const PaintInfo& paint_info, | 253 const PaintInfo& paint_info, |
254 const LayoutPoint& point, | 254 const LayoutPoint& point, |
255 const DocumentMarker& marker, | 255 const TextMatchMarker& marker, |
256 const ComputedStyle& style, | 256 const ComputedStyle& style, |
257 const Font& font) const { | 257 const Font& font) const { |
258 SVGInlineTextBoxPainter(*this).PaintTextMatchMarkerBackground( | 258 SVGInlineTextBoxPainter(*this).PaintTextMatchMarkerBackground( |
259 paint_info, point, marker, style, font); | 259 paint_info, point, marker, style, font); |
260 } | 260 } |
261 | 261 |
262 LayoutRect SVGInlineTextBox::CalculateBoundaries() const { | 262 LayoutRect SVGInlineTextBox::CalculateBoundaries() const { |
263 LineLayoutSVGInlineText line_layout_item = | 263 LineLayoutSVGInlineText line_layout_item = |
264 LineLayoutSVGInlineText(this->GetLineLayoutItem()); | 264 LineLayoutSVGInlineText(this->GetLineLayoutItem()); |
265 const SimpleFontData* font_data = line_layout_item.ScaledFont().PrimaryFont(); | 265 const SimpleFontData* font_data = line_layout_item.ScaledFont().PrimaryFont(); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 return true; | 328 return true; |
329 } | 329 } |
330 } | 330 } |
331 } | 331 } |
332 } | 332 } |
333 } | 333 } |
334 return false; | 334 return false; |
335 } | 335 } |
336 | 336 |
337 } // namespace blink | 337 } // namespace blink |
OLD | NEW |