Changeset 161286 in webkit
- Timestamp:
- Jan 3, 2014, 2:28:19 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 1 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r161285 r161286 1 2014-01-03 Daniel Bates <dabates@apple.com> 2 3 [iOS] Upstream WebCore/css changes 4 https://bugs.webkit.org/show_bug.cgi?id=126237 5 6 Reviewed by Simon Fraser. 7 8 * css/CSSComputedStyleDeclaration.cpp: 9 (WebCore::ComputedStyleExtractor::propertyValue): Added iOS-specific code and FIXME comment. 10 * css/CSSParser.cpp: 11 (WebCore::CSSParserContext::CSSParserContext): Ditto. 12 (WebCore::CSSParser::parseValue): Ditto. 13 * css/CSSPropertyNames.in: Added property -webkit-composition-fill-color. Also added FIXME comment. 14 * css/CSSValueKeywords.in: Added iOS-specific -apple-system-* values. 15 * css/DeprecatedStyleBuilder.cpp: 16 (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): Added iOS-specific code and FIXME comments. 17 * css/MediaFeatureNames.h: Added media feature -webkit-video-playable-inline. 18 * css/MediaQueryEvaluator.cpp: 19 (WebCore::isRunningOnIPhoneOrIPod): Added. Also added FIXME comment. 20 (WebCore::video_playable_inlineMediaFeatureEval): Added. 21 * css/StyleResolver.cpp: 22 (WebCore::StyleResolver::canShareStyleWithElement): Substitute toHTMLMediaElement() for toMediaElement(). 23 (WebCore::StyleResolver::applyProperty): Added iOS-specific code and FIXME comment. 24 * css/html.css: Added iOS-specific CSS styles. 25 (input, textarea, keygen, select, button, isindex): 26 (isindex): 27 (input[type="date"]): 28 (input[type="datetime"]): 29 (input[type="datetime-local"]): 30 (input[type="month"]): 31 (input[type="time"]): 32 (textarea): 33 (input:-webkit-autofill): 34 (input[type="radio"], input[type="checkbox"]): 35 (input[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button, button): 36 (input[type="range"]::-webkit-slider-thumb, input[type="range"]::-webkit-media-slider-thumb): 37 (input[type="range"]::-webkit-slider-thumb:active): 38 (input:disabled, textarea:disabled): 39 (input[readonly], textarea[readonly]): 40 (textarea::-webkit-input-placeholder): 41 (input[type="checkbox"]): 42 (input[type="radio"]): 43 (input[type="checkbox"]:checked, input[type="radio"]:checked): 44 (input[type="checkbox"]:checked:disabled, input[type="radio"]:checked:disabled): 45 (select:focus): 46 (select): 47 * css/mathml.css: Added iOS-specific CSS styles. 48 (math, mfenced > *): 49 (mo, mfenced): 50 * css/mediaControlsiOS.css: Added. 51 * css/svg.css: Added iOS-specific CSS styles. 52 (text, tspan, tref): 53 1 54 2014-01-03 Brent Fulgham <bfulgham@apple.com> 2 55 -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r161209 r161286 349 349 #if PLATFORM(IOS) 350 350 CSSPropertyWebkitTouchCallout, 351 352 // FIXME: This property shouldn't be iOS-specific. Once we fix up its usage in InlineTextBox::paintCompositionBackground() 353 // we should move it outside the PLATFORM(IOS)-guard. See <https://bugs.webkit.org/show_bug.cgi?id=126296>. 354 CSSPropertyWebkitCompositionFillColor, 351 355 #endif 352 356 #if ENABLE(CSS_SHAPES) … … 2740 2744 case CSSPropertyWebkitRtlOrdering: 2741 2745 return cssValuePool().createIdentifierValue(style->rtlOrdering() ? CSSValueVisual : CSSValueLogical); 2746 #if PLATFORM(IOS) 2747 // FIXME: This property shouldn't be iOS-specific. Once we fix up its usage in InlineTextBox::paintCompositionBackground() 2748 // we should remove the PLATFORM(IOS)-guard. See <https://bugs.webkit.org/show_bug.cgi?id=126296>. 2749 case CSSPropertyWebkitCompositionFillColor: 2750 return currentColorOrValidColor(style.get(), style->compositionFillColor()); 2751 #endif 2742 2752 #if ENABLE(TOUCH_EVENTS) 2743 2753 case CSSPropertyWebkitTapHighlightColor: -
trunk/Source/WebCore/css/CSSParser.cpp
r161086 r161286 265 265 , useLegacyBackgroundSizeShorthandBehavior(false) 266 266 { 267 #if PLATFORM(IOS) 268 // FIXME: Force the site specific quirk below to work on iOS. Investigating other site specific quirks 269 // to see if we can enable the preference all together is to be handled by: 270 // <rdar://problem/8493309> Investigate Enabling Site Specific Quirks in MobileSafari and UIWebView 271 needsSiteSpecificQuirks = true; 272 #endif 267 273 } 268 274 … … 281 287 , useLegacyBackgroundSizeShorthandBehavior(document.settings() ? document.settings()->useLegacyBackgroundSizeShorthandBehavior() : false) 282 288 { 289 #if PLATFORM(IOS) 290 // FIXME: Force the site specific quirk below to work on iOS. Investigating other site specific quirks 291 // to see if we can enable the preference all together is to be handled by: 292 // <rdar://problem/8493309> Investigate Enabling Site Specific Quirks in MobileSafari and UIWebView 293 needsSiteSpecificQuirks = true; 294 #endif 283 295 } 284 296 … … 2761 2773 2762 2774 #if PLATFORM(IOS) 2775 // FIXME: CSSPropertyWebkitCompositionFillColor shouldn't be iOS-specific. Once we fix up its usage in 2776 // InlineTextBox::paintCompositionBackground() we should move it outside the PLATFORM(IOS)-guard. 2777 // See <https://bugs.webkit.org/show_bug.cgi?id=126296>. 2778 case CSSPropertyWebkitCompositionFillColor: 2779 if ((id >= CSSValueAqua && id <= CSSValueWindowtext) || id == CSSValueMenu 2780 || (id >= CSSValueWebkitFocusRingColor && id < CSSValueWebkitText && inQuirksMode())) { 2781 validPrimitive = true; 2782 } else { 2783 parsedValue = parseColor(); 2784 if (parsedValue) 2785 m_valueList->next(); 2786 } 2787 break; 2763 2788 case CSSPropertyWebkitTouchCallout: 2764 2789 if (id == CSSValueDefault || id == CSSValueNone) … … 12730 12755 // If the prefix is -apple- or -khtml-, change it to -webkit-. 12731 12756 // This makes the string one character longer. 12732 if (hasPrefix(buffer, length, "-apple-") || hasPrefix(buffer, length, "-khtml-")) { 12757 // On iOS we don't want to change values starting with -apple-system to -webkit-system. 12758 if ((hasPrefix(buffer, length, "-apple-") && !hasPrefix(buffer, length, "-apple-system")) || hasPrefix(buffer, length, "-khtml-")) { 12733 12759 memmove(buffer + 7, buffer + 6, length + 1 - 6); 12734 12760 memcpy(buffer, "-webkit", 7); -
trunk/Source/WebCore/css/CSSPropertyNames.in
r160200 r161286 466 466 #if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS 467 467 -webkit-touch-callout [Inherited] 468 #endif 468 469 // FIXME: This property shouldn't be iOS-specific. Once we fix up its usage in InlineTextBox::paintCompositionBackground() 470 // we should move it outside the WTF_PLATFORM_IOS-guard. 471 -webkit-composition-fill-color [Inherited] 472 #endif -
trunk/Source/WebCore/css/CSSValueKeywords.in
r161067 r161286 32 32 -webkit-small-control 33 33 -webkit-control 34 35 #if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS 36 -apple-system-headline 37 -apple-system-body 38 -apple-system-subheadline 39 -apple-system-footnote 40 -apple-system-caption1 41 -apple-system-caption2 42 -apple-system-short-headline 43 -apple-system-short-body 44 -apple-system-short-subheadline 45 -apple-system-short-footnote 46 -apple-system-short-caption1 47 -apple-system-tall-body 48 #endif 49 50 // This has to go after the -apple-system versions. 34 51 status-bar 35 52 -
trunk/Source/WebCore/css/DeprecatedStyleBuilder.cpp
r161209 r161286 2313 2313 #endif 2314 2314 setPropertyHandler(CSSPropertyLeft, ApplyPropertyLength<&RenderStyle::left, &RenderStyle::setLeft, &RenderStyle::initialOffset, AutoEnabled>::createHandler()); 2315 2316 // FIXME: We should reconcile the difference in datatype between iOS and OpenSource. On iOS we want letter spacing to 2317 // be float for sub-pixel kerning. See <https://bugs.webkit.org/show_bug.cgi?id=20606>. 2318 #if !PLATFORM(IOS) 2315 2319 setPropertyHandler(CSSPropertyLetterSpacing, ApplyPropertyComputeLength<int, &RenderStyle::letterSpacing, &RenderStyle::setLetterSpacing, &RenderStyle::initialLetterWordSpacing, NormalEnabled, ThicknessDisabled, SVGZoomEnabled>::createHandler()); 2320 #else 2321 setPropertyHandler(CSSPropertyLetterSpacing, ApplyPropertyComputeLength<float, &RenderStyle::letterSpacing, &RenderStyle::setLetterSpacing, &RenderStyle::initialLetterWordSpacing, NormalEnabled, ThicknessDisabled, SVGZoomEnabled>::createHandler()); 2322 #endif 2323 2316 2324 #if ENABLE(IOS_TEXT_AUTOSIZING) 2317 2325 setPropertyHandler(CSSPropertyLineHeight, ApplyPropertyLineHeightForIOSTextAutosizing::createHandler()); … … 2529 2537 setPropertyHandler(CSSPropertyWidth, ApplyPropertyLength<&RenderStyle::width, &RenderStyle::setWidth, &RenderStyle::initialSize, AutoEnabled, LegacyIntrinsicEnabled, IntrinsicEnabled, NoneDisabled, UndefinedDisabled>::createHandler()); 2530 2538 setPropertyHandler(CSSPropertyWordBreak, ApplyPropertyDefault<EWordBreak, &RenderStyle::wordBreak, EWordBreak, &RenderStyle::setWordBreak, EWordBreak, &RenderStyle::initialWordBreak>::createHandler()); 2539 2540 // FIXME: We should reconcile the difference in datatype between iOS and OpenSource. On iOS we want word spacing to 2541 // be float for sub-pixel kerning. See <https://bugs.webkit.org/show_bug.cgi?id=20606>. 2542 #if !PLATFORM(IOS) 2531 2543 setPropertyHandler(CSSPropertyWordSpacing, ApplyPropertyComputeLength<int, &RenderStyle::wordSpacing, &RenderStyle::setWordSpacing, &RenderStyle::initialLetterWordSpacing, NormalEnabled, ThicknessDisabled, SVGZoomEnabled>::createHandler()); 2544 #else 2545 setPropertyHandler(CSSPropertyWordSpacing, ApplyPropertyComputeLength<float, &RenderStyle::wordSpacing, &RenderStyle::setWordSpacing, &RenderStyle::initialLetterWordSpacing, NormalEnabled, ThicknessDisabled, SVGZoomEnabled>::createHandler()); 2546 #endif 2547 2532 2548 // UAs must treat 'word-wrap' as an alternate name for the 'overflow-wrap' property. So using the same handlers. 2533 2549 setPropertyHandler(CSSPropertyWordWrap, ApplyPropertyDefault<EOverflowWrap, &RenderStyle::overflowWrap, EOverflowWrap, &RenderStyle::setOverflowWrap, EOverflowWrap, &RenderStyle::initialOverflowWrap>::createHandler()); -
trunk/Source/WebCore/css/MediaFeatureNames.h
r148431 r161286 74 74 macro(transition, "-webkit-transition") \ 75 75 macro(animation, "-webkit-animation") \ 76 macro(video_playable_inline, "-webkit-video-playable-inline") \ 76 77 CSS_MEDIAQUERY_VIEW_MODE(macro) 77 78 -
trunk/Source/WebCore/css/MediaQueryEvaluator.cpp
r160763 r161286 60 60 #endif 61 61 62 #if PLATFORM(IOS) 63 #include "WebCoreSystemInterface.h" 64 #endif 65 62 66 namespace WebCore { 63 67 … … 625 629 #endif // ENABLE(VIEW_MODE_CSS_MEDIA) 626 630 631 // FIXME: Find a better place for this function. Maybe ChromeClient? 632 static inline bool isRunningOnIPhoneOrIPod() 633 { 634 #if PLATFORM(IOS) 635 static wkDeviceClass deviceClass = iosDeviceClass(); 636 return deviceClass == wkDeviceClassiPhone || deviceClass == wkDeviceClassiPod; 637 #else 638 return false; 639 #endif 640 } 641 642 static bool video_playable_inlineMediaFeatureEval(CSSValue*, RenderStyle*, Frame* frame, MediaFeaturePrefix) 643 { 644 return !isRunningOnIPhoneOrIPod() || frame->settings().mediaPlaybackAllowsInline(); 645 } 646 627 647 enum PointerDeviceType { TouchPointer, MousePointer, NoPointer, UnknownPointer }; 628 648 -
trunk/Source/WebCore/css/StyleResolver.cpp
r160973 r161286 713 713 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) 714 714 // With proxying, the media elements are backed by a RenderEmbeddedObject. 715 if ((element->hasTagName(videoTag) || element->hasTagName(audioTag)) && to MediaElement(element)->shouldUseVideoPluginProxy())715 if ((element->hasTagName(videoTag) || element->hasTagName(audioTag)) && toHTMLMediaElement(element)->shouldUseVideoPluginProxy()) 716 716 return false; 717 717 #endif … … 2608 2608 2609 2609 state.style()->setTouchCalloutEnabled(primitiveValue->getStringValue().lower() != "none"); 2610 return; 2611 } 2612 2613 // FIXME: CSSPropertyWebkitCompositionFillColor shouldn't be iOS-specific. Once we fix up its usage in 2614 // InlineTextBox::paintCompositionBackground() we should move it outside the PLATFORM(IOS)-guard. 2615 // See <https://bugs.webkit.org/show_bug.cgi?id=126296>. 2616 case CSSPropertyWebkitCompositionFillColor: { 2617 HANDLE_INHERIT_AND_INITIAL(compositionFillColor, CompositionFillColor); 2618 if (!primitiveValue) 2619 break; 2620 state.style()->setCompositionFillColor(colorFromPrimitiveValue(primitiveValue)); 2610 2621 return; 2611 2622 } -
trunk/Source/WebCore/css/html.css
r155324 r161286 400 400 input, textarea, keygen, select, button, isindex { 401 401 margin: 0__qem; 402 #if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) 402 403 font: -webkit-small-control; 404 #endif 403 405 color: initial; 404 406 letter-spacing: normal; … … 420 422 } 421 423 422 input, input[type="password"], input[type="search"], isindex { 424 input, 425 input[type="password"], 426 input[type="search"], 427 #if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS 428 textarea, 429 input[type="range"], 430 #endif 431 isindex { 423 432 -webkit-appearance: textfield; 433 background-color: white; 434 #if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS 435 border-radius: 5px; 436 font: 11px Helvetica, -webkit-pictograph; 437 border: 1px solid #4c4c4c; 438 padding: 0.2em 0.5em 0.3em 0.5em; 439 #else 440 border: 2px inset; 424 441 padding: 1px; 425 background-color: white; 426 border: 2px inset; 442 #endif 427 443 -webkit-rtl-ordering: logical; 428 444 -webkit-user-select: text; … … 500 516 display: -webkit-inline-flex; 501 517 overflow: hidden; 518 #if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) 502 519 width: 10em; 520 #endif 503 521 } 504 522 #endif … … 509 527 display: -webkit-inline-flex; 510 528 overflow: hidden; 529 #if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) 511 530 width: 10em; 531 #endif 512 532 } 513 533 #endif … … 518 538 display: -webkit-inline-flex; 519 539 overflow: hidden; 540 #if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) 520 541 width: 10em; 542 #endif 521 543 } 522 544 #endif … … 527 549 display: -webkit-inline-flex; 528 550 overflow: hidden; 551 #if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) 529 552 width: 10em; 553 #endif 530 554 } 531 555 #endif … … 536 560 display: -webkit-inline-flex; 537 561 overflow: hidden; 562 #if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) 538 563 width: 10em; 564 #endif 539 565 } 540 566 #endif 541 567 #if defined(ENABLE_INPUT_TYPE_WEEK) && ENABLE_INPUT_TYPE_WEEK 568 #if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) 542 569 input[type="week"] { 543 570 -webkit-align-items: center; … … 548 575 } 549 576 #endif 550 577 #endif 578 579 #if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) 551 580 input::-webkit-date-and-time-value { 552 581 margin: 1px 24px 1px 4px; 553 582 white-space: pre; 554 583 } 584 #endif 555 585 556 586 input::-webkit-inner-spin-button { … … 591 621 textarea { 592 622 -webkit-appearance: textarea; 623 #if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) 593 624 background-color: white; 594 625 border: 1px solid; 595 626 -webkit-rtl-ordering: logical; 596 627 -webkit-user-select: text; 628 #else 629 -webkit-nbsp-mode: space; 630 -webkit-line-break: after-white-space; 631 #endif 597 632 -webkit-flex-direction: column; 598 633 resize: auto; … … 635 670 636 671 input:-webkit-autofill { 672 #if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS 673 background-color: #F7EC87 !important; 674 #else 637 675 background-color: #FAFFBD !important; 676 #endif 638 677 background-image:none !important; 639 678 color: #000000 !important; … … 642 681 input[type="radio"], input[type="checkbox"] { 643 682 margin: 3px 0.5ex; 683 #if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS 684 border: 1px solid #4c4c4c; 685 box-sizing: border-box; 686 #else 644 687 padding: initial; 645 688 background-color: initial; 646 689 border: initial; 690 #endif 647 691 } 648 692 … … 665 709 cursor: default; 666 710 color: ButtonText; 711 #if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) 667 712 padding: 2px 6px 3px 6px; 668 713 border: 2px outset ButtonFace; 669 714 background-color: ButtonFace; 715 #else 716 padding: 0 1.0em; 717 border: 1px solid #4c4c4c; 718 /* We want to be as close to background-color:transparent as possible without actually being transparent. */ 719 background-color: rgba(255, 255, 255, 0.01); 720 font: 11px Helvetica; 721 #endif 670 722 box-sizing: border-box 671 723 } … … 701 753 -webkit-user-modify: read-only !important; 702 754 display: block; 703 } 755 #if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS 756 background-color: white; 757 border: 1px solid rgb(66, 66, 66); 758 padding: 0px; 759 #endif 760 } 761 762 #if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS 763 input[type="range"]::-webkit-slider-thumb:active { 764 background-color: black; 765 } 766 767 input:disabled, textarea:disabled { 768 opacity: 0.4; 769 } 770 771 input[readonly], textarea[readonly] { 772 border-color: rgb(188, 188, 188); 773 } 774 775 textarea::-webkit-input-placeholder { 776 text-indent: 2px; 777 } 778 #endif 704 779 705 780 input[type="button"]:disabled, input[type="submit"]:disabled, input[type="reset"]:disabled, … … 710 785 } 711 786 787 #if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) 712 788 input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active, input[type="file"]:active::-webkit-file-upload-button, button:active { 713 789 border-style: inset … … 717 793 border-style: outset 718 794 } 795 #endif 719 796 720 797 area, param { … … 724 801 input[type="checkbox"] { 725 802 -webkit-appearance: checkbox; 726 box-sizing: border-box; 727 } 728 803 #if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) 804 box-sizing: border-box; 805 #else 806 border-radius: 5px; 807 width: 16px; 808 height: 16px; 809 padding: 0px; 810 /* We want to be as close to background:transparent as possible without actually being transparent */ 811 background-color: rgba(255, 255, 255, 0.01); 812 #endif 813 } 814 815 #if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS 729 816 input[type="radio"] { 730 817 -webkit-appearance: radio; 731 box-sizing: border-box; 732 } 818 border-radius: 8px; 819 width: 16px; 820 height: 16px; 821 padding: 0px; 822 /* We want to be as close to background:transparent as possible without actually being transparent */ 823 background-color: rgba(255, 255, 255, 0.01); 824 } 825 826 input[type="checkbox"]:checked, input[type="radio"]:checked { 827 background:rgba(0, 0, 0, 0.8); 828 border-color:rgba(255, 255, 255, 0.0); 829 } 830 831 input[type="checkbox"]:checked:disabled, input[type="radio"]:checked:disabled { 832 opacity:0.4; 833 background:rgba(0, 0, 0, 0.8); 834 } 835 #endif 836 837 #if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) 838 input[type="radio"] { 839 -webkit-appearance: radio; 840 box-sizing: border-box; 841 } 842 #endif 843 844 #if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS 845 select:focus { 846 border-color: rgb(17, 46, 135); 847 } 848 #endif 733 849 734 850 #if defined(ENABLE_INPUT_TYPE_COLOR) && ENABLE_INPUT_TYPE_COLOR … … 778 894 779 895 select { 896 box-sizing: border-box; 897 #if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS 898 -webkit-appearance: menulist-button; 899 letter-spacing: normal; 900 word-spacing: normal; 901 line-height: normal; 902 border: 1px solid #4c4c4c; 903 /* We want to be as close to background:transparent as possible without actually being transparent */ 904 background-color: rgba(255, 255, 255, 0.01); 905 font: 11px Helvetica; 906 padding: 0 0.5em 0 0.5em; 907 #else 780 908 -webkit-appearance: menulist; 781 box-sizing: border-box; 909 border: 1px solid; 910 color: black; 911 background-color: white; 912 #endif 782 913 -webkit-align-items: center; 783 border: 1px solid;784 914 white-space: pre; 785 915 -webkit-rtl-ordering: logical; 786 color: black;787 background-color: white;788 916 cursor: default; 789 917 } 790 918 919 #if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) 791 920 select[size], 792 921 select[multiple], … … 807 936 white-space: pre; 808 937 } 938 #endif 809 939 810 940 optgroup { -
trunk/Source/WebCore/css/mathml.css
r160711 r161286 12 12 /* Keep font-family and other defaults here consistent with http://mxr.mozilla.org/mozilla-central/source/layout/mathml/mathml.css and feedback from www-math. */ 13 13 math, mfenced > * { 14 #if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS 15 /* We explicitly include the font Symbol as it's the iOS equivalent of font STIXGeneral. */ 16 font-family: STIXGeneral, Symbol, "Times New Roman", sans-serif; 17 #else 14 18 font-family: MathJax_Main, STIXGeneral, "DejaVu Serif", Cambria, "Cambria Math", Times, serif; 19 #endif 15 20 } 16 21 mo, mfenced { 22 #if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS 23 /* We explicitly include the font Symbol as it's the iOS equivalent of font STIXGeneral. */ 24 font-family: STIXGeneral, Symbol, "Times New Roman", sans-serif; 25 #else 17 26 font-family: MathJax_Main, STIXGeneral, STIXSizeOneSym, "DejaVu Sans", "DejaVu Serif", Cambria, "Cambria Math", 18 27 "Lucida Sans Unicode", "Arial Unicode MS", "Lucida Grande", OpenSymbol, "Standard Symbols L", sans-serif; 28 #endif 19 29 } 20 30 -
trunk/Source/WebCore/css/svg.css
r145168 r161286 56 56 } 57 57 58 #if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS 59 text, tspan, tref { 60 -webkit-text-size-adjust: none; 61 } 62 #endif 63 58 64 /* states */ 59 65
Note:
See TracChangeset
for help on using the changeset viewer.