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

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

Issue 15923002: Move CSSOM classes to using MutableStylePropertySet over StylePropertySet. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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/editing/FrameSelection.h ('k') | Source/core/inspector/InspectorCSSAgent.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 1884 matching lines...) Expand 10 before | Expand all | Expand 10 after
1895 if (caretBrowsing) 1895 if (caretBrowsing)
1896 m_frame->page()->focusController()->setFocusedNode(0, m_frame); 1896 m_frame->page()->focusController()->setFocusedNode(0, m_frame);
1897 } 1897 }
1898 1898
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<MutableStylePropertySet> 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()->mutableCopy(); 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 }
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « Source/core/editing/FrameSelection.h ('k') | Source/core/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698