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

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

Issue 2382653006: Split CSSPrimitiveValue into CSSPrimitiveValue and CSSIdentifierValue (Closed)
Patch Set: Make check-webkit-style happy Created 4 years, 3 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
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 859e620d73a1d15efda12b051e3dadda933dc15a..5df9aaf9e128cb47183ba5b3551f39f941983704 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -38,6 +38,7 @@
#include "core/animation/AnimationTimeline.h"
#include "core/animation/CustomCompositorAnimations.h"
#include "core/animation/css/CSSAnimations.h"
+#include "core/css/CSSIdentifierValue.h"
#include "core/css/CSSImageValue.h"
#include "core/css/CSSPrimitiveValue.h"
#include "core/css/CSSStyleSheet.h"
@@ -3842,8 +3843,8 @@ void Element::inlineStyleChanged() {
void Element::setInlineStyleProperty(CSSPropertyID propertyID,
CSSValueID identifier,
bool important) {
- setInlineStyleProperty(
- propertyID, CSSPrimitiveValue::createIdentifier(identifier), important);
+ setInlineStyleProperty(propertyID, CSSIdentifierValue::create(identifier),
+ important);
}
void Element::setInlineStyleProperty(CSSPropertyID propertyID,
@@ -3905,8 +3906,7 @@ void Element::addPropertyToPresentationAttributeStyle(
CSSPropertyID propertyID,
CSSValueID identifier) {
DCHECK(isStyledElement());
- style->setProperty(propertyID,
- *CSSPrimitiveValue::createIdentifier(identifier));
+ style->setProperty(propertyID, *CSSIdentifierValue::create(identifier));
}
void Element::addPropertyToPresentationAttributeStyle(

Powered by Google App Engine
This is Rietveld 408576698