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

Side by Side Diff: Source/core/editing/Caret.cpp

Issue 319183004: Prefer to forward-declare GraphicsContext in headers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: schenney nit (pare down platform/geometry/ includes to *Rect.h) Created 6 years, 6 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/css/CSSPrimitiveValue.cpp ('k') | Source/core/fetch/ImageResource.cpp » ('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) 2004, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2008, 2009, 2010 Apple 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 14 matching lines...) Expand all
25 25
26 #include "config.h" 26 #include "config.h"
27 #include "core/editing/Caret.h" 27 #include "core/editing/Caret.h"
28 28
29 #include "core/dom/Document.h" 29 #include "core/dom/Document.h"
30 #include "core/editing/htmlediting.h" 30 #include "core/editing/htmlediting.h"
31 #include "core/frame/LocalFrame.h" 31 #include "core/frame/LocalFrame.h"
32 #include "core/frame/Settings.h" 32 #include "core/frame/Settings.h"
33 #include "core/rendering/RenderBlock.h" 33 #include "core/rendering/RenderBlock.h"
34 #include "core/rendering/RenderView.h" 34 #include "core/rendering/RenderView.h"
35 #include "platform/graphics/GraphicsContext.h"
35 36
36 namespace WebCore { 37 namespace WebCore {
37 38
38 CaretBase::CaretBase(CaretVisibility visibility) 39 CaretBase::CaretBase(CaretVisibility visibility)
39 : m_caretRectNeedsUpdate(true) 40 : m_caretRectNeedsUpdate(true)
40 , m_caretVisibility(visibility) 41 , m_caretVisibility(visibility)
41 { 42 {
42 } 43 }
43 44
44 DragCaretController::DragCaretController() 45 DragCaretController::DragCaretController()
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 context->fillRect(caret, caretColor); 262 context->fillRect(caret, caretColor);
262 } 263 }
263 264
264 void DragCaretController::paintDragCaret(LocalFrame* frame, GraphicsContext* p, const LayoutPoint& paintOffset, const LayoutRect& clipRect) const 265 void DragCaretController::paintDragCaret(LocalFrame* frame, GraphicsContext* p, const LayoutPoint& paintOffset, const LayoutRect& clipRect) const
265 { 266 {
266 if (m_position.deepEquivalent().deprecatedNode()->document().frame() == fram e) 267 if (m_position.deepEquivalent().deprecatedNode()->document().frame() == fram e)
267 paintCaret(m_position.deepEquivalent().deprecatedNode(), p, paintOffset, clipRect); 268 paintCaret(m_position.deepEquivalent().deprecatedNode(), p, paintOffset, clipRect);
268 } 269 }
269 270
270 } 271 }
OLDNEW
« no previous file with comments | « Source/core/css/CSSPrimitiveValue.cpp ('k') | Source/core/fetch/ImageResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698