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

Unified Diff: sky/engine/core/editing/Editor.cpp

Issue 780443002: Remove dead code from EditingStyle. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: try again Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/editing/Editor.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/editing/Editor.cpp
diff --git a/sky/engine/core/editing/Editor.cpp b/sky/engine/core/editing/Editor.cpp
index dbbfd3051b2ccab1595559d8676f8ddd07c9eaca..04e759944d0d437a47116f10e12ea6a748b38d10 100644
--- a/sky/engine/core/editing/Editor.cpp
+++ b/sky/engine/core/editing/Editor.cpp
@@ -367,29 +367,6 @@ Element* Editor::findEventTargetFromSelection() const
return findEventTargetFrom(m_frame.selection().selection());
}
-bool Editor::selectionStartHasStyle(CSSPropertyID propertyID, const String& value) const
-{
- return EditingStyle::create(propertyID, value)->triStateOfStyle(
- EditingStyle::styleAtSelectionStart(m_frame.selection().selection(), propertyID == CSSPropertyBackgroundColor).get());
-}
-
-TriState Editor::selectionHasStyle(CSSPropertyID propertyID, const String& value) const
-{
- return EditingStyle::create(propertyID, value)->triStateOfStyle(m_frame.selection().selection());
-}
-
-String Editor::selectionStartCSSPropertyValue(CSSPropertyID propertyID)
-{
- RefPtr<EditingStyle> selectionStyle = EditingStyle::styleAtSelectionStart(m_frame.selection().selection(),
- propertyID == CSSPropertyBackgroundColor);
- if (!selectionStyle || !selectionStyle->style())
- return String();
-
- if (propertyID == CSSPropertyFontSize)
- return String::number(selectionStyle->legacyFontSize(m_frame.document()));
- return selectionStyle->style()->getPropertyValue(propertyID);
-}
-
static void dispatchEditableContentChangedEvents(PassRefPtr<Element> startRoot, PassRefPtr<Element> endRoot)
{
if (startRoot)
« no previous file with comments | « sky/engine/core/editing/Editor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698