Skip to content
  • commit-queue@webkit.org's avatar
    Web Inspector: Display color picker in popover on color swatch click · 9848b0bb
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=117919
    
    Patch by Matthew Holden <jftholden@yahoo.com> on 2013-06-27
    Reviewed by Timothy Hatcher.
    
    Includes fixes from second code review.
    
    * Localizations/en.lproj/localizedStrings.js:
    * UserInterface/CSSColorPicker.css: Added.
    (.colorpicker-container):
    (.colorpicker-fill-parent):
    (.colorpicker-top):
    (.colorpicker-color):
    (.colorpicker-bottom span):
    (.colorpicker-text):
    (.colorpicker-color-text-value):
    (.colorpicker-hue):
    (.colorpicker-fill):
    (.colorpicker-range-container):
    (.colorpicker-range-container *):
    (.colorpicker-range-container label):
    (.colorpicker-range-container input):
    (.colorpicker-saturation):
    (.colorpicker-value):
    (.colorpicker-dragger):
    (.colorpicker-slider):
    (.colorpicker-container .swatch):
    (.colorpicker-container .swatch-inner):
    * UserInterface/CSSColorPicker.js: Added.
    (WebInspector.CSSColorPicker.consume):
    (WebInspector.CSSColorPicker.move):
    (WebInspector.CSSColorPicker.start):
    (WebInspector.CSSColorPicker.stop):
    (WebInspector.CSSColorPicker.makeDraggable):
    (WebInspector.CSSColorPicker.hueDrag):
    (WebInspector.CSSColorPicker.colorDragStart):
    (WebInspector.CSSColorPicker.colorDrag):
    (WebInspector.CSSColorPicker.alphaDrag):
    (WebInspector.CSSColorPicker.colorSwatchClicked):
    (WebInspector.CSSColorPicker):
    (WebInspector.CSSColorPicker.prototype.get element):
    (WebInspector.CSSColorPicker.prototype.set color):
    (WebInspector.CSSColorPicker.prototype.get color):
    (WebInspector.CSSColorPicker.prototype.get outputColorFormat):
    (WebInspector.CSSColorPicker.prototype.get colorHueOnly):
    (WebInspector.CSSColorPicker.prototype.set displayText):
    (WebInspector.CSSColorPicker.prototype.shown):
    (WebInspector.CSSColorPicker.prototype._updateHelperLocations):
    (WebInspector.CSSColorPicker.prototype._updateDisplay):
    (WebInspector.CSSColorPicker.hsvaToRGBA):
    (WebInspector.CSSColorPicker.rgbaToHSVA):
    * UserInterface/CSSStyleDeclarationTextEditor.js:
    (WebInspector.CSSStyleDeclarationTextEditor.prototype.didDismissPopover):
    (WebInspector.CSSStyleDeclarationTextEditor.prototype.):
    (WebInspector.CSSStyleDeclarationTextEditor.prototype._createColorSwatches):
    (WebInspector.CSSStyleDeclarationTextEditor.prototype.event.newColorText.colorTextMarker):
    (WebInspector.CSSStyleDeclarationTextEditor.prototype.event.newColorText):
    * UserInterface/Main.html:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152092 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    9848b0bb