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 1888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1899 void DragCaretController::paintDragCaret(Frame* frame, GraphicsContext* p, const
LayoutPoint& paintOffset, const LayoutRect& clipRect) const | 1899 void DragCaretController::paintDragCaret(Frame* frame, GraphicsContext* p, const
LayoutPoint& paintOffset, const LayoutRect& clipRect) const |
1900 { | 1900 { |
1901 if (m_position.deepEquivalent().deprecatedNode()->document()->frame() == fra
me) | 1901 if (m_position.deepEquivalent().deprecatedNode()->document()->frame() == fra
me) |
1902 paintCaret(m_position.deepEquivalent().deprecatedNode(), p, paintOffset,
clipRect); | 1902 paintCaret(m_position.deepEquivalent().deprecatedNode(), p, paintOffset,
clipRect); |
1903 } | 1903 } |
1904 | 1904 |
1905 PassRefPtr<StylePropertySet> FrameSelection::copyTypingStyle() const | 1905 PassRefPtr<StylePropertySet> FrameSelection::copyTypingStyle() const |
1906 { | 1906 { |
1907 if (!m_typingStyle || !m_typingStyle->style()) | 1907 if (!m_typingStyle || !m_typingStyle->style()) |
1908 return 0; | 1908 return 0; |
1909 return m_typingStyle->style()->copy(); | 1909 return m_typingStyle->style()->mutableCopy(); |
1910 } | 1910 } |
1911 | 1911 |
1912 bool FrameSelection::shouldDeleteSelection(const VisibleSelection& selection) co
nst | 1912 bool FrameSelection::shouldDeleteSelection(const VisibleSelection& selection) co
nst |
1913 { | 1913 { |
1914 return m_frame->editor()->client()->shouldDeleteRange(selection.toNormalized
Range().get()); | 1914 return m_frame->editor()->client()->shouldDeleteRange(selection.toNormalized
Range().get()); |
1915 } | 1915 } |
1916 | 1916 |
1917 FloatRect FrameSelection::bounds(bool clipToVisibleContent) const | 1917 FloatRect FrameSelection::bounds(bool clipToVisibleContent) const |
1918 { | 1918 { |
1919 RenderView* root = m_frame->contentRenderer(); | 1919 RenderView* root = m_frame->contentRenderer(); |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2071 sel.showTreeForThis(); | 2071 sel.showTreeForThis(); |
2072 } | 2072 } |
2073 | 2073 |
2074 void showTree(const WebCore::FrameSelection* sel) | 2074 void showTree(const WebCore::FrameSelection* sel) |
2075 { | 2075 { |
2076 if (sel) | 2076 if (sel) |
2077 sel->showTreeForThis(); | 2077 sel->showTreeForThis(); |
2078 } | 2078 } |
2079 | 2079 |
2080 #endif | 2080 #endif |
OLD | NEW |