Chromium Code Reviews| Index: Source/core/editing/RemoveCSSPropertyCommand.cpp |
| diff --git a/Source/core/editing/RemoveCSSPropertyCommand.cpp b/Source/core/editing/RemoveCSSPropertyCommand.cpp |
| index 6daa8410d93f0426dfa1a4951a6f3949d513f31c..6e80d60233206abf877f6bc8f87f2d2b0fbfc1f2 100644 |
| --- a/Source/core/editing/RemoveCSSPropertyCommand.cpp |
| +++ b/Source/core/editing/RemoveCSSPropertyCommand.cpp |
| @@ -50,6 +50,10 @@ RemoveCSSPropertyCommand::~RemoveCSSPropertyCommand() |
| void RemoveCSSPropertyCommand::doApply() |
| { |
| const StylePropertySet* style = m_element->inlineStyle(); |
| + if (!style) { |
|
eseidel
2013/12/23 21:22:43
Although (I think?) we allow {} around one-line if
chrishtr
2013/12/23 22:06:46
Done.
|
| + return; |
| + } |
| + |
| m_oldValue = style->getPropertyValue(m_property); |
| m_important = style->propertyIsImportant(m_property); |