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

Side by Side Diff: Source/core/platform/graphics/GraphicsContext.h

Issue 14160005: Track the region where text is painted. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase with TOT Created 7 years, 8 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
OLDNEW
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 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 void clipOutRoundedRect(const RoundedRect&); 258 void clipOutRoundedRect(const RoundedRect&);
259 void clipPath(const Path&, WindRule); 259 void clipPath(const Path&, WindRule);
260 void clipConvexPolygon(size_t numPoints, const FloatPoint*, bool antiali as = true); 260 void clipConvexPolygon(size_t numPoints, const FloatPoint*, bool antiali as = true);
261 void clipToImageBuffer(ImageBuffer*, const FloatRect&); 261 void clipToImageBuffer(ImageBuffer*, const FloatRect&);
262 262
263 IntRect clipBounds() const; 263 IntRect clipBounds() const;
264 264
265 TextDrawingModeFlags textDrawingMode() const; 265 TextDrawingModeFlags textDrawingMode() const;
266 void setTextDrawingMode(TextDrawingModeFlags); 266 void setTextDrawingMode(TextDrawingModeFlags);
267 267
268 void drawText(const Font&, const TextRun&, const FloatPoint&, int from = 0, int to = -1); 268 void drawText(const Font&, const TextRun&, const FloatPoint&, const Floa tRect& textRect, int from = 0, int to = -1);
269 void drawEmphasisMarks(const Font&, const TextRun& , const AtomicString& mark, const FloatPoint&, int from = 0, int to = -1); 269 void drawEmphasisMarks(const Font&, const TextRun& , const AtomicString& mark, const FloatPoint&, const FloatRect& textRect, int from = 0, int to = -1);
270 void drawBidiText(const Font&, const TextRun&, const FloatPoint&, Font:: CustomFontNotReadyAction = Font::DoNotPaintIfFontNotReady); 270 void drawBidiText(const Font&, const TextRun&, const FloatPoint&, const FloatRect& textRect, Font::CustomFontNotReadyAction = Font::DoNotPaintIfFontNotR eady);
271 void drawHighlightForText(const Font&, const TextRun&, const FloatPoint& , int h, const Color& backgroundColor, ColorSpace, int from = 0, int to = -1); 271 void drawHighlightForText(const Font&, const TextRun&, const FloatPoint& , int h, const Color& backgroundColor, ColorSpace, int from = 0, int to = -1);
272 272
273 enum RoundingMode { 273 enum RoundingMode {
274 RoundAllSides, 274 RoundAllSides,
275 RoundOriginAndDimensions 275 RoundOriginAndDimensions
276 }; 276 };
277 FloatRect roundToDevicePixels(const FloatRect&, RoundingMode = RoundAllS ides); 277 FloatRect roundToDevicePixels(const FloatRect&, RoundingMode = RoundAllS ides);
278 278
279 void drawLineForText(const FloatPoint&, float width, bool printing); 279 void drawLineForText(const FloatPoint&, float width, bool printing);
280 enum DocumentMarkerLineStyle { 280 enum DocumentMarkerLineStyle {
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 436
437 private: 437 private:
438 GraphicsContext& m_context; 438 GraphicsContext& m_context;
439 bool m_saveAndRestore; 439 bool m_saveAndRestore;
440 }; 440 };
441 441
442 } // namespace WebCore 442 } // namespace WebCore
443 443
444 #endif // GraphicsContext_h 444 #endif // GraphicsContext_h
445 445
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698