old_contents: 'use strict';
  
  var Color = require('../../components/color');
  var hasColorscale = require('../../components/colorscale/helpers').hasColorscale;
  var colorscaleDefaults = require('../../components/colorscale/defaults');
  
  module.exports = function handleStyleDefaults(traceIn, traceOut, coerce, defaultColor, layout) {
      coerce('marker.color', defaultColor);
  
      if(hasColorscale(traceIn, 'marker')) {
          colorscaleDefaults(
              traceIn, traceOut, layout, coerce, {prefix: 'marker.', cLetter: 'c'}
          );
      }
  
      coerce('marker.line.color', Color.defaultLine);
  
      if(hasColorscale(traceIn, 'marker.line')) {
          colorscaleDefaults(
              traceIn, traceOut, layout, coerce, {prefix: 'marker.line.', cLetter: 'c'}
          );
      }
  
      coerce('marker.line.width');
      coerce('marker.opacity');
      coerce('marker.pattern.shape');
      coerce('marker.pattern.bgcolor');
      coerce('marker.pattern.size');
      coerce('marker.pattern.solidity');
      coerce('selected.marker.color');
      coerce('unselected.marker.color');
  };
  
new_contents: 'use strict';
  
  var Color = require('../../components/color');
  var hasColorscale = require('../../components/colorscale/helpers').hasColorscale;
  var colorscaleDefaults = require('../../components/colorscale/defaults');
  
  module.exports = function handleStyleDefaults(traceIn, traceOut, coerce, defaultColor, layout) {
      coerce('marker.color', defaultColor);
  
      if(hasColorscale(traceIn, 'marker')) {
          colorscaleDefaults(
              traceIn, traceOut, layout, coerce, {prefix: 'marker.', cLetter: 'c'}
          );
      }
  
      coerce('marker.line.color', Color.defaultLine);
  
      if(hasColorscale(traceIn, 'marker.line')) {
          colorscaleDefaults(
              traceIn, traceOut, layout, coerce, {prefix: 'marker.line.', cLetter: 'c'}
          );
      }
  
      coerce('marker.line.width');
      coerce('marker.opacity');
      var pattern = coerce('marker.pattern.shape');
      if (pattern) {
          coerce('marker.pattern.bgcolor');
          coerce('marker.pattern.size');
          coerce('marker.pattern.solidity');
      }
      coerce('selected.marker.color');
      coerce('unselected.marker.color');
  };
  
subject: Update src/traces/bar/style_defaults.js