IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
846 | 846 | element.setStyle( 'border-style', 'solid' ); |
847 | 847 | } |
848 | 848 | else if ( !value && this.isChanged() ) |
849 | | { |
850 | | element.removeStyle( 'border-width' ); |
851 | | element.removeStyle( 'border-style' ); |
852 | | element.removeStyle( 'border-color' ); |
853 | | } |
| 849 | element.removeStyle( 'border' ); |
854 | 850 | |
855 | 851 | if ( !internalCommit && type == IMAGE ) |
856 | 852 | element.removeAttribute( 'border' ); |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
105 | 105 | } |
106 | 106 | }; |
107 | 107 | |
| 108 | ( function() |
| 109 | { |
| 110 | |
108 | 111 | CKEDITOR.tools.extend( CKEDITOR.dom.element.prototype, |
109 | 112 | /** @lends CKEDITOR.dom.element.prototype */ |
110 | 113 | { |
… |
… |
|
1189 | 1192 | { |
1190 | 1193 | // Removes the specified property from the current style object. |
1191 | 1194 | var $ = this.$.style; |
| 1195 | |
| 1196 | // "removeProperty" need to be specific on the following styles. |
| 1197 | if ( !$.removeProperty && ( name == 'border' || name == 'margin' || name == 'padding' ) ) |
| 1198 | { |
| 1199 | var names = specificRules( name ); |
| 1200 | for ( var i = 0 ; i < names.length ; i++ ) { |
| 1201 | this.removeStyle( names[ i ] ); |
| 1202 | } |
| 1203 | return; |
| 1204 | } |
| 1205 | |
1192 | 1206 | $.removeProperty ? $.removeProperty( name ) : $.removeAttribute( CKEDITOR.tools.cssStyleToDomStyle( name ) ); |
1193 | 1207 | |
1194 | 1208 | if ( !this.$.style.cssText ) |
… |
… |
|
1755 | 1769 | } |
1756 | 1770 | }); |
1757 | 1771 | |
1758 | | ( function() |
1759 | | { |
1760 | 1772 | var sides = { |
1761 | 1773 | width : [ "border-left-width", "border-right-width","padding-left", "padding-right" ], |
1762 | 1774 | height : [ "border-top-width", "border-bottom-width", "padding-top", "padding-bottom" ] |
1763 | 1775 | }; |
| 1776 | |
| 1777 | // Generate list of specific style rules, applicable to margin/padding/border. |
| 1778 | function specificRules( style ) { |
| 1779 | var sides = [ 'top', 'left', 'right', 'bottom' ], components; |
| 1780 | |
| 1781 | switch ( style ) { |
| 1782 | case 'border' : |
| 1783 | components = [ 'color', 'style', 'width' ]; |
| 1784 | } |
| 1785 | |
| 1786 | var styles = []; |
| 1787 | for ( var i = 0 ; i < sides.length ; i++ ) { |
| 1788 | |
| 1789 | if ( components ) |
| 1790 | { |
| 1791 | for ( var j = 0 ; j < components.length ; j++) { |
| 1792 | styles.push( [ style, sides[ i ], components[j] ].join( '-' ) ); |
| 1793 | } |
| 1794 | } |
| 1795 | else |
| 1796 | styles.push( [ style, sides[ i ] ].join( '-' ) ); |
| 1797 | } |
| 1798 | |
| 1799 | return styles; |
| 1800 | } |
1764 | 1801 | |
1765 | 1802 | function marginAndPaddingSize( type ) |
1766 | 1803 | { |