return createDeclarationNode(propertyNode, propertyValueNode, location, true);
}
private CssDeclarationNode buildWidthDeclaration(String imageResource,
SourceCodeLocation location) {
CssPropertyNode propertyNode = new CssPropertyNode("width", location);
CssValueNode valueNode = new CssDotPathNode(resourceThisPrefix, imageResource + ".getWidth",
null, "px", location);
CssPropertyValueNode propertyValueNode = new CssPropertyValueNode(ImmutableList.of(valueNode));
return createDeclarationNode(propertyNode, propertyValueNode, location, true);