Index: wp-includes/media.php
===================================================================
--- wp-includes/media.php	(revision 18583)
+++ wp-includes/media.php	(working copy)
@@ -783,7 +783,8 @@
 		'columns'    => 3,
 		'size'       => 'thumbnail',
 		'include'    => '',
-		'exclude'    => ''
+		'exclude'    => '',
+		'nostyle'    => ''
 	), $attr));
 
 	$id = intval($id);
@@ -824,7 +825,7 @@
 	$selector = "gallery-{$instance}";
 
 	$gallery_style = $gallery_div = '';
-	if ( apply_filters( 'use_default_gallery_style', true ) )
+	if ( (apply_filters( 'use_default_gallery_style', true )) && ($nostyle != 'true'))
 		$gallery_style = "
 		<style type='text/css'>
 			#{$selector} {