| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |