public/ckeditor/4.4dev/core/style.js
function( elementPath, editor, filter ) {
			// Backward compatibility.
			if ( editor && editor instanceof CKEDITOR.filter )
				filter = editor;

			if ( filter && !filter.check( this ) )
				return false;

			switch ( this.type ) {
				case CKEDITOR.STYLE_OBJECT:
					return !!elementPath.contains( this.element );
				case CKEDITOR.STYLE_BLOCK:
					return !!elementPath.blockLimit.getDtd()[ this.element ];
			}

			return true;
		}
function( elementPath, editor, filter ) {
			// Backward compatibility.
			if ( editor && editor instanceof CKEDITOR.filter )
				filter = editor;

			if ( filter && !filter.check( this ) )
				return false;

			switch ( this.type ) {
				case CKEDITOR.STYLE_OBJECT:
					return !!elementPath.contains( this.element );
				case CKEDITOR.STYLE_BLOCK:
					return !!elementPath.blockLimit.getDtd()[ this.element ];
			}

			return true;
		}
function ( elementPath , editor , filter ) { // Backward compatibility. if ( editor && editor instanceof CKEDITOR . filter ) filter = editor ; if ( filter && ! filter . check ( this ) ) return false ; switch ( this . type ) { case CKEDITOR . STYLE_OBJECT : return ! ! elementPath . contains ( this . element ) ; case CKEDITOR . STYLE_BLOCK : return ! ! elementPath . blockLimit . getDtd ( ) [ this . element ] ; } return true ; }
Whether this style can be applied at the specified elements path.

@param {CKEDITOR.dom.elementPath} elementPath The elements path to
check the style against.
@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.
@param {CKEDITOR.filter} [filter] If defined, the style will be
checked against this filter as well.
@returns {Boolean} `true` if this style can be applied at the elements path.
Whether this style can be applied at the specified elements path .