Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Side by Side Diff: Source/core/css/CSSDefaultStyleSheets.cpp

Issue 61733019: Make unicode-bidi:isolate the default for block elements instead of unicode-bidi:embed Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r ights reserved. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r ights reserved.
6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 StyleSheetContents* CSSDefaultStyleSheets::quirksStyleSheet; 55 StyleSheetContents* CSSDefaultStyleSheets::quirksStyleSheet;
56 StyleSheetContents* CSSDefaultStyleSheets::svgStyleSheet; 56 StyleSheetContents* CSSDefaultStyleSheets::svgStyleSheet;
57 StyleSheetContents* CSSDefaultStyleSheets::mediaControlsStyleSheet; 57 StyleSheetContents* CSSDefaultStyleSheets::mediaControlsStyleSheet;
58 StyleSheetContents* CSSDefaultStyleSheets::fullscreenStyleSheet; 58 StyleSheetContents* CSSDefaultStyleSheets::fullscreenStyleSheet;
59 59
60 // FIXME: It would be nice to use some mechanism that guarantees this is in sync with the real UA stylesheet. 60 // FIXME: It would be nice to use some mechanism that guarantees this is in sync with the real UA stylesheet.
61 static const char simpleUserAgentStyleSheet[] = "html,body,div{display:block}hea d{display:none}body{margin:8px}div:focus,span:focus,a:focus{outline:auto 5px -we bkit-focus-ring-color}a:-webkit-any-link{color:-webkit-link;text-decoration:unde rline}a:-webkit-any-link:active{color:-webkit-activelink}body:-webkit-seamless-d ocument{margin:0}body:-webkit-full-page-media{background-color:black}@page{size: auto;margin:auto;padding:0;border-width:0}"; 61 static const char simpleUserAgentStyleSheet[] = "html,body,div{display:block}hea d{display:none}body{margin:8px}div:focus,span:focus,a:focus{outline:auto 5px -we bkit-focus-ring-color}a:-webkit-any-link{color:-webkit-link;text-decoration:unde rline}a:-webkit-any-link:active{color:-webkit-activelink}body:-webkit-seamless-d ocument{margin:0}body:-webkit-full-page-media{background-color:black}@page{size: auto;margin:auto;padding:0;border-width:0}";
62 62
63 static inline bool elementCanUseSimpleDefaultStyle(Element* e) 63 static inline bool elementCanUseSimpleDefaultStyle(Element* e)
64 { 64 {
65 return isHTMLHtmlElement(e) || e->hasTagName(headTag) || e->hasTagName(bodyT ag) || e->hasTagName(divTag) || e->hasTagName(spanTag) || e->hasTagName(brTag) | | isHTMLAnchorElement(e); 65 return isHTMLHtmlElement(e) || e->hasTagName(headTag) || e->hasTagName(bodyT ag) || e->hasTagName(spanTag) || e->hasTagName(brTag) || isHTMLAnchorElement(e) ;
esprehn 2013/11/14 06:46:54 Removing div from the simple sheet doesn't look ri
66 } 66 }
67 67
68 static const MediaQueryEvaluator& screenEval() 68 static const MediaQueryEvaluator& screenEval()
69 { 69 {
70 DEFINE_STATIC_LOCAL(const MediaQueryEvaluator, staticScreenEval, ("screen")) ; 70 DEFINE_STATIC_LOCAL(const MediaQueryEvaluator, staticScreenEval, ("screen")) ;
71 return staticScreenEval; 71 return staticScreenEval;
72 } 72 }
73 73
74 static const MediaQueryEvaluator& printEval() 74 static const MediaQueryEvaluator& printEval()
75 { 75 {
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 defaultStyle->addRulesFromSheet(fullscreenStyleSheet, screenEval()); 196 defaultStyle->addRulesFromSheet(fullscreenStyleSheet, screenEval());
197 defaultQuirksStyle->addRulesFromSheet(fullscreenStyleSheet, screenEval() ); 197 defaultQuirksStyle->addRulesFromSheet(fullscreenStyleSheet, screenEval() );
198 changedDefaultStyle = true; 198 changedDefaultStyle = true;
199 } 199 }
200 200
201 ASSERT(defaultStyle->features().idsInRules.isEmpty()); 201 ASSERT(defaultStyle->features().idsInRules.isEmpty());
202 ASSERT(defaultStyle->features().siblingRules.isEmpty()); 202 ASSERT(defaultStyle->features().siblingRules.isEmpty());
203 } 203 }
204 204
205 } // namespace WebCore 205 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698