Title: [126713] trunk/Source/WebCore
Revision
126713
Author
[email protected]
Date
2012-08-26 14:11:54 -0700 (Sun, 26 Aug 2012)

Log Message

Streamline mathml.css
https://bugs.webkit.org/show_bug.cgi?id=95039

Reviewed by Dan Bernstein.

Remove 3 no-op { margin: 0px } declarations, and combine several { display: inline-block } ones.

Tested by existing tests.

* css/mathml.css:
(math):
(mo, mrow, mfenced, mfrac, msub, msup, msubsup, munder, mover, munderover, msqrt, mroot):
(mrow, mfenced):
(msubsup > *):
(mo, mn, mi, mtext):
(annotation, annotation-xml):
(msqrt):
(mroot):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (126712 => 126713)


--- trunk/Source/WebCore/ChangeLog	2012-08-26 19:53:09 UTC (rev 126712)
+++ trunk/Source/WebCore/ChangeLog	2012-08-26 21:11:54 UTC (rev 126713)
@@ -1,3 +1,24 @@
+2012-08-26  David Barton  <[email protected]>
+
+        Streamline mathml.css
+        https://bugs.webkit.org/show_bug.cgi?id=95039
+
+        Reviewed by Dan Bernstein.
+
+        Remove 3 no-op { margin: 0px } declarations, and combine several { display: inline-block } ones.
+
+        Tested by existing tests.
+
+        * css/mathml.css:
+        (math):
+        (mo, mrow, mfenced, mfrac, msub, msup, msubsup, munder, mover, munderover, msqrt, mroot):
+        (mrow, mfenced):
+        (msubsup > *):
+        (mo, mn, mi, mtext):
+        (annotation, annotation-xml):
+        (msqrt):
+        (mroot):
+
 2012-08-26  Pavel Feldman  <[email protected]>
 
         Web Inspector: make ConsoleView listen to the _javascript_ContextManager

Modified: trunk/Source/WebCore/css/mathml.css (126712 => 126713)


--- trunk/Source/WebCore/css/mathml.css	2012-08-26 19:53:09 UTC (rev 126712)
+++ trunk/Source/WebCore/css/mathml.css	2012-08-26 21:11:54 UTC (rev 126713)
@@ -12,7 +12,6 @@
     font-family: STIXGeneral, Symbol, "Times New Roman", sans-serif;
     display: inline-block;
     padding: 0px;
-    margin: 0px;
     text-align: left;
     padding-left: 1px;
     padding-right: 1px;
@@ -27,8 +26,11 @@
     margin-right: auto;
 }
 
-mrow, mfenced {
+mo, mrow, mfenced, mfrac, msub, msup, msubsup, munder, mover, munderover, msqrt, mroot {
     display: inline-block;
+}
+
+mrow, mfenced {
     white-space: nowrap;
 }
 
@@ -46,14 +48,6 @@
     margin-left: 0.1em;
 }
 
-mfrac {
-    display: inline-block;
-}
-
-msub, msup {
-    display: inline-block;
-}
-
 msub > * + * {
     vertical-align: sub;
     font-size: 0.75em;
@@ -64,12 +58,7 @@
     font-size: 0.75em;
 }
 
-msubsup {
-    display: inline-block;
-}
-
 msubsup > * {
-    margin: 0px;
     padding: 0px;
 }
 
@@ -77,23 +66,14 @@
     font-size: 0.75em;
 }
 
-munder, mover, munderover {
-    display: inline-block;
-}
-
 munderover > * + *, mover > * + *, munder > * + * {
     font-size: 0.75em;
 }
 
 mo, mn, mi, mtext {
     padding: 0px;
-    margin: 0px;
 }
 
-mo {
-    display: inline-block;
-}
-
 math > mo, mrow > mo, mfenced > mo {
     padding-right: 0.1em;
 }
@@ -131,7 +111,7 @@
 }
  
 annotation, annotation-xml {
-    display:none;
+    display: none;
 }
 
 mphantom {
@@ -146,12 +126,10 @@
 }
 
 msqrt {
-    display: inline-block;
     white-space: nowrap; /* for the anonymous RenderMathMLRow */
 }
 
 mroot {
-    display: inline-block;
     position: relative;
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to