| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008-2009 Torch Mobile, Inc. | 3 * Copyright (C) 2008-2009 Torch Mobile, Inc. |
| 4 * Copyright (C) 2013 Google Inc. All rights reserved. | 4 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 class AffineTransform; | 63 class AffineTransform; |
| 64 class DrawingBuffer; | 64 class DrawingBuffer; |
| 65 class Generator; | 65 class Generator; |
| 66 class ImageBuffer; | 66 class ImageBuffer; |
| 67 class IntRect; | 67 class IntRect; |
| 68 class RoundedRect; | 68 class RoundedRect; |
| 69 class KURL; | 69 class KURL; |
| 70 class GraphicsContext3D; | 70 class GraphicsContext3D; |
| 71 class TextRun; | 71 class TextRun; |
| 72 struct TextRunPaintInfo; |
| 72 class TransformationMatrix; | 73 class TransformationMatrix; |
| 73 | 74 |
| 74 enum TextDrawingMode { | 75 enum TextDrawingMode { |
| 75 TextModeFill = 1 << 0, | 76 TextModeFill = 1 << 0, |
| 76 TextModeStroke = 1 << 1, | 77 TextModeStroke = 1 << 1, |
| 77 }; | 78 }; |
| 78 typedef unsigned TextDrawingModeFlags; | 79 typedef unsigned TextDrawingModeFlags; |
| 79 | 80 |
| 80 enum StrokeStyle { | 81 enum StrokeStyle { |
| 81 NoStroke, | 82 NoStroke, |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 void clipRoundedRect(const RoundedRect&); | 266 void clipRoundedRect(const RoundedRect&); |
| 266 void clipOut(const IntRect&); | 267 void clipOut(const IntRect&); |
| 267 void clipOutRoundedRect(const RoundedRect&); | 268 void clipOutRoundedRect(const RoundedRect&); |
| 268 void clipPath(const Path&, WindRule); | 269 void clipPath(const Path&, WindRule); |
| 269 void clipConvexPolygon(size_t numPoints, const FloatPoint*, bool antiali
as = true); | 270 void clipConvexPolygon(size_t numPoints, const FloatPoint*, bool antiali
as = true); |
| 270 void clipToImageBuffer(ImageBuffer*, const FloatRect&); | 271 void clipToImageBuffer(ImageBuffer*, const FloatRect&); |
| 271 | 272 |
| 272 TextDrawingModeFlags textDrawingMode() const; | 273 TextDrawingModeFlags textDrawingMode() const; |
| 273 void setTextDrawingMode(TextDrawingModeFlags); | 274 void setTextDrawingMode(TextDrawingModeFlags); |
| 274 | 275 |
| 275 void drawText(const Font&, const TextRun&, const FloatPoint&, int from =
0, int to = -1); | 276 void drawText(const Font&, const TextRunPaintInfo&, const FloatPoint&); |
| 276 void drawEmphasisMarks(const Font&, const TextRun& , const AtomicString&
mark, const FloatPoint&, int from = 0, int to = -1); | 277 void drawEmphasisMarks(const Font&, const TextRunPaintInfo&, const Atomi
cString& mark, const FloatPoint&); |
| 277 void drawBidiText(const Font&, const TextRun&, const FloatPoint&, Font::
CustomFontNotReadyAction = Font::DoNotPaintIfFontNotReady); | 278 void drawBidiText(const Font&, const TextRunPaintInfo&, const FloatPoint
&, Font::CustomFontNotReadyAction = Font::DoNotPaintIfFontNotReady); |
| 278 void drawHighlightForText(const Font&, const TextRun&, const FloatPoint&
, int h, const Color& backgroundColor, ColorSpace, int from = 0, int to = -1); | 279 void drawHighlightForText(const Font&, const TextRun&, const FloatPoint&
, int h, const Color& backgroundColor, ColorSpace, int from = 0, int to = -1); |
| 279 | 280 |
| 280 enum RoundingMode { | 281 enum RoundingMode { |
| 281 RoundAllSides, | 282 RoundAllSides, |
| 282 RoundOriginAndDimensions | 283 RoundOriginAndDimensions |
| 283 }; | 284 }; |
| 284 FloatRect roundToDevicePixels(const FloatRect&, RoundingMode = RoundAllS
ides); | 285 FloatRect roundToDevicePixels(const FloatRect&, RoundingMode = RoundAllS
ides); |
| 285 | 286 |
| 286 void drawLineForText(const FloatPoint&, float width, bool printing); | 287 void drawLineForText(const FloatPoint&, float width, bool printing); |
| 287 enum DocumentMarkerLineStyle { | 288 enum DocumentMarkerLineStyle { |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 | 438 |
| 438 private: | 439 private: |
| 439 GraphicsContext& m_context; | 440 GraphicsContext& m_context; |
| 440 bool m_saveAndRestore; | 441 bool m_saveAndRestore; |
| 441 }; | 442 }; |
| 442 | 443 |
| 443 } // namespace WebCore | 444 } // namespace WebCore |
| 444 | 445 |
| 445 #endif // GraphicsContext_h | 446 #endif // GraphicsContext_h |
| 446 | 447 |
| OLD | NEW |