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

Side by Side Diff: Source/platform/graphics/ContentLayerDelegate.cpp

Issue 834173003: Change about caret painting in slimming paint mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add tests Created 5 years, 11 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
« no previous file with comments | « Source/core/rendering/PaintPhase.h ('k') | Source/platform/graphics/paint/DisplayItem.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 RefPtr<SkPicture> picture; 83 RefPtr<SkPicture> picture;
84 SkCanvas* canvas = recorder.beginRecording(clip.width, clip.height); 84 SkCanvas* canvas = recorder.beginRecording(clip.width, clip.height);
85 canvas->save(); 85 canvas->save();
86 canvas->translate(-clip.x, -clip.y); 86 canvas->translate(-clip.x, -clip.y);
87 canvas->clipRect(SkRect::MakeXYWH(clip.x, clip.y, clip.width, clip.height)); 87 canvas->clipRect(SkRect::MakeXYWH(clip.x, clip.y, clip.width, clip.height));
88 paintContents(canvas, clip, canPaintLCDText, contextStatus); 88 paintContents(canvas, clip, canPaintLCDText, contextStatus);
89 canvas->restore(); 89 canvas->restore();
90 picture = adoptRef(recorder.endRecording()); 90 picture = adoptRef(recorder.endRecording());
91 91
92 ASSERT(m_painter->displayItemList()); 92 ASSERT(m_painter->displayItemList());
93 ASSERT(m_painter->displayItemList()->paintList().size() > 0);
94 93
95 const PaintList& paintList = m_painter->displayItemList()->paintList(); 94 const PaintList& paintList = m_painter->displayItemList()->paintList();
96 for (PaintList::const_iterator it = paintList.begin(); it != paintList.end() ; ++it) 95 for (PaintList::const_iterator it = paintList.begin(); it != paintList.end() ; ++it)
97 (*it)->appendToWebDisplayItemList(webDisplayItemList); 96 (*it)->appendToWebDisplayItemList(webDisplayItemList);
98 } 97 }
99 98
100 } // namespace blink 99 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/PaintPhase.h ('k') | Source/platform/graphics/paint/DisplayItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698