IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
82 | 82 | var currentValue = this.getValue(); |
83 | 83 | |
84 | 84 | var elementPath = ev.data.path, |
85 | | elements = elementPath.elements; |
| 85 | elements = elementPath.elements, |
| 86 | style; |
86 | 87 | |
87 | 88 | // For each element into the elements path. |
88 | 89 | for ( var i = 0, element ; i < elements.length ; i++ ) |
… |
… |
|
93 | 94 | // the styles. |
94 | 95 | for ( var value in styles ) |
95 | 96 | { |
96 | | if ( styles[ value ].checkElementRemovable( element, true ) ) |
| 97 | style = styles[ value ]; |
| 98 | |
| 99 | // Check if element style matches precisely. |
| 100 | if ( style.checkElementRemovable( element, true ) == 1 ) |
97 | 101 | { |
98 | 102 | if ( value != currentValue ) |
99 | 103 | this.setValue( value ); |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
235 | 235 | { |
236 | 236 | // If no attributes are defined in the element. |
237 | 237 | if ( !fullMatch && !element.hasAttributes() ) |
238 | | return true; |
| 238 | return 1; |
239 | 239 | |
240 | 240 | attribs = getAttributesForComparison( def ); |
241 | 241 | |
… |
… |
|
254 | 254 | : attribs[ attName ] == elementAttr ) |
255 | 255 | { |
256 | 256 | if ( !fullMatch ) |
257 | | return true; |
| 257 | return 1; |
258 | 258 | } |
259 | 259 | else if ( fullMatch ) |
260 | 260 | return false; |
261 | 261 | } |
262 | 262 | if ( fullMatch ) |
263 | | return true; |
| 263 | return 1; |
264 | 264 | } |
265 | 265 | else |
266 | | return true; |
| 266 | return 1; |
267 | 267 | } |
268 | 268 | |
269 | 269 | // Check if the element can be somehow overriden. |
… |
… |
|
272 | 272 | { |
273 | 273 | // If no attributes have been defined, remove the element. |
274 | 274 | if ( !( attribs = override.attributes ) ) |
275 | | return true; |
| 275 | return 2; |
276 | 276 | |
277 | 277 | for ( var i = 0 ; i < attribs.length ; i++ ) |
278 | 278 | { |
… |
… |
|
291 | 291 | if ( attValue === null || |
292 | 292 | ( typeof attValue == 'string' && actualAttrValue == attValue ) || |
293 | 293 | attValue.test( actualAttrValue ) ) |
294 | | return true; |
| 294 | return 2; |
295 | 295 | } |
296 | 296 | } |
297 | 297 | } |