X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2F_bootstrap.js;h=7ed91debc5b51e1db604e8e35e9907fc5a9f50db;hb=a272c66d841421f8bf933c16535bdcde1c4649fc;hp=f6ba4d6b9c412a5f18ace63934c1590b186ae24b;hpb=039a051ccf3901311661022a30afd60fc38130c9;p=ckeditor.git diff --git a/_source/core/_bootstrap.js b/_source/core/_bootstrap.js index f6ba4d6..7ed91de 100644 --- a/_source/core/_bootstrap.js +++ b/_source/core/_bootstrap.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -16,19 +16,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license return; } - // Check is High Contrast is active by creating a temporary element with a - // background image. - - var useSpacer = CKEDITOR.env.ie && CKEDITOR.env.version < 7, - useBlank = CKEDITOR.env.ie && CKEDITOR.env.version == 7; - - var backgroundImageUrl = useSpacer ? ( CKEDITOR.basePath + 'images/spacer.gif' ) : - useBlank ? 'about:blank' : 'data:image/png;base64,'; - + // Check whether high contrast is active by creating a colored border. var hcDetect = CKEDITOR.dom.element.createFromHtml( - '
', CKEDITOR.document ); + '
', CKEDITOR.document ); hcDetect.appendTo( CKEDITOR.document.getHead() ); @@ -36,7 +27,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license // Catch exception needed sometimes for FF. (#4230) try { - CKEDITOR.env.hc = ( hcDetect.getComputedStyle( 'background-image' ) == 'none' ); + CKEDITOR.env.hc = hcDetect.getComputedStyle( 'border-top-color' ) == hcDetect.getComputedStyle( 'border-right-color' ); } catch (e) {