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

Unified Diff: Source/core/inspector/LayoutEditor.cpp

Issue 1225553002: CSSValue Immediates: Make CSSPrimitiveValue a container (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cssvalue_patch_1
Patch Set: Rebase Created 5 years, 5 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 | « Source/core/editing/markup.cpp ('k') | Source/core/layout/svg/ReferenceFilterBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/LayoutEditor.cpp
diff --git a/Source/core/inspector/LayoutEditor.cpp b/Source/core/inspector/LayoutEditor.cpp
index 81dc8cb7fb42aab04d74d65940af8627fbd0833e..a687d3401251a7f02694f155ebc44deb87482bca 100644
--- a/Source/core/inspector/LayoutEditor.cpp
+++ b/Source/core/inspector/LayoutEditor.cpp
@@ -149,7 +149,7 @@ PassRefPtr<JSONObject> LayoutEditor::createValueDescription(const String& proper
return nullptr;
RefPtr<JSONObject> object = JSONObject::create();
- object->setNumber("value", toCSSPrimitiveValue(cssValue)->getFloatValue());
+ object->setNumber("value", toCSSPrimitiveValue(*cssValue).getFloatValue());
object->setString("unit", "px");
return object.release();
}
@@ -166,7 +166,7 @@ void LayoutEditor::overlayStartedPropertyChange(const String& anchorName)
return;
}
- m_propertyInitialValue = toCSSPrimitiveValue(cssValue)->getFloatValue();
+ m_propertyInitialValue = toCSSPrimitiveValue(*cssValue).getFloatValue();
}
void LayoutEditor::overlayPropertyChanged(float cssDelta)
« no previous file with comments | « Source/core/editing/markup.cpp ('k') | Source/core/layout/svg/ReferenceFilterBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698