public/ckeditor/4.4dev/core/style.js
function( element, fullMatch ) {
			var def = this._.definition;

			if ( !element || !def.ignoreReadonly && element.isReadOnly() )
				return false;

			var attribs,
				name = element.getName();

			// If the element name is the same as the style name.
			if ( typeof this.element == 'string' ? name == this.element : name in this.element ) {
				// If no attributes are defined in the element.
				if ( !fullMatch && !element.hasAttributes() )
					return true;

				attribs = getAttributesForComparison( def );

				if ( attribs._length ) {
					for ( var attName in attribs ) {
						if ( attName == '_length' )
							continue;

						var elementAttr = element.getAttribute( attName ) || '';

						// Special treatment for 'style' attribute is required.
						if ( attName == 'style' ? compareCssText( attribs[ attName ], elementAttr ) : attribs[ attName ] == elementAttr ) {
							if ( !fullMatch )
								return true;
						} else if ( fullMatch ) {
							return false;
						}
					}
					if ( fullMatch )
						return true;
				} else {
					return true;
				}
			}

			return false;
		}
function( element, fullMatch ) {
			var def = this._.definition;

			if ( !element || !def.ignoreReadonly && element.isReadOnly() )
				return false;

			var attribs,
				name = element.getName();

			// If the element name is the same as the style name.
			if ( typeof this.element == 'string' ? name == this.element : name in this.element ) {
				// If no attributes are defined in the element.
				if ( !fullMatch && !element.hasAttributes() )
					return true;

				attribs = getAttributesForComparison( def );

				if ( attribs._length ) {
					for ( var attName in attribs ) {
						if ( attName == '_length' )
							continue;

						var elementAttr = element.getAttribute( attName ) || '';

						// Special treatment for 'style' attribute is required.
						if ( attName == 'style' ? compareCssText( attribs[ attName ], elementAttr ) : attribs[ attName ] == elementAttr ) {
							if ( !fullMatch )
								return true;
						} else if ( fullMatch ) {
							return false;
						}
					}
					if ( fullMatch )
						return true;
				} else {
					return true;
				}
			}

			return false;
		}
function ( element , fullMatch ) { var def = this . _ . definition ; if ( ! element || ! def . ignoreReadonly && element . isReadOnly ( ) ) return false ; var attribs , name = element . getName ( ) ; // If the element name is the same as the style name. if ( typeof this . element == 'string' ? name == this . element : name in this . element ) { // If no attributes are defined in the element. if ( ! fullMatch && ! element . hasAttributes ( ) ) return true ; attribs = getAttributesForComparison ( def ) ; if ( attribs . _length ) { for ( var attName in attribs ) { if ( attName == '_length' ) continue ; var elementAttr = element . getAttribute ( attName ) || '' ; // Special treatment for 'style' attribute is required. if ( attName == 'style' ? compareCssText ( attribs [ attName ] , elementAttr ) : attribs [ attName ] == elementAttr ) { if ( ! fullMatch ) return true ; } else if ( fullMatch ) { return false ; } } if ( fullMatch ) return true ; } else { return true ; } } return false ; }
Checks if the element matches the current style definition.

@param {CKEDITOR.dom.element} element
@param {Boolean} fullMatch
@param {CKEDITOR.editor} editor The editor instance. Required argument since
CKEditor 4.4. The style system will work without it, but it is highly
recommended to provide it for integration with all features. Read more about
the signature change in the {@link CKEDITOR.style} documentation.
@returns {Boolean}
Checks if the element matches the current style definition .