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

Unified Diff: third_party/WebKit/Source/core/dom/Element.cpp

Issue 2800723002: Ensure we never remove the style attribute when syncing it from CSSOM. (Closed)
Patch Set: Rebaseline Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/platform/win/external/wpt/editing/run/underline-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Element.cpp
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index 4048627057cfba89fd7ef6947df9c88e11af6486..a5f1d219583146dcca60e408fa7c08fd321eedd3 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -4015,8 +4015,7 @@ void Element::SynchronizeStyleAttributeInternal() const {
GetElementData()->style_attribute_is_dirty_ = false;
const StylePropertySet* inline_style = this->InlineStyle();
const_cast<Element*>(this)->SetSynchronizedLazyAttribute(
- styleAttr,
- inline_style ? AtomicString(inline_style->AsText()) : g_null_atom);
+ styleAttr, AtomicString(inline_style ? inline_style->AsText() : ""));
esprehn 2017/04/18 01:57:01 inline_style ? AtomicString(inline_style->AsText()
}
CSSStyleDeclaration* Element::style() {
« no previous file with comments | « third_party/WebKit/LayoutTests/platform/win/external/wpt/editing/run/underline-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698