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

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

Issue 210813002: Rename /shadow-deep/ combinator to /deep/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSGrammar.y ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * 1999 Waldo Bastian (bastian@kde.org) 3 * 1999 Waldo Bastian (bastian@kde.org)
4 * 2001 Andreas Schlapbach (schlpbch@iam.unibe.ch) 4 * 2001 Andreas Schlapbach (schlpbch@iam.unibe.ch)
5 * 2001-2003 Dirk Mueller (mueller@kde.org) 5 * 2001-2003 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2002, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2002, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2008 David Smith (catfish.man@gmail.com) 7 * Copyright (C) 2008 David Smith (catfish.man@gmail.com)
8 * Copyright (C) 2010 Google Inc. All rights reserved. 8 * Copyright (C) 2010 Google Inc. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 if (cs->relationIsAffectedByPseudoContent() && tagHistory->pseudoTyp e() != CSSSelector::PseudoContent) 699 if (cs->relationIsAffectedByPseudoContent() && tagHistory->pseudoTyp e() != CSSSelector::PseudoContent)
700 return tagHistory->selectorText("::-webkit-distributed(" + str.t oString() + rightSide + ")"); 700 return tagHistory->selectorText("::-webkit-distributed(" + str.t oString() + rightSide + ")");
701 return tagHistory->selectorText(" " + str.toString() + rightSide); 701 return tagHistory->selectorText(" " + str.toString() + rightSide);
702 case CSSSelector::Child: 702 case CSSSelector::Child:
703 if (cs->relationIsAffectedByPseudoContent() && tagHistory->pseudoTyp e() != CSSSelector::PseudoContent) 703 if (cs->relationIsAffectedByPseudoContent() && tagHistory->pseudoTyp e() != CSSSelector::PseudoContent)
704 return tagHistory->selectorText("::-webkit-distributed(> " + str .toString() + rightSide + ")"); 704 return tagHistory->selectorText("::-webkit-distributed(> " + str .toString() + rightSide + ")");
705 return tagHistory->selectorText(" > " + str.toString() + rightSide); 705 return tagHistory->selectorText(" > " + str.toString() + rightSide);
706 case CSSSelector::Shadow: 706 case CSSSelector::Shadow:
707 return tagHistory->selectorText(" /shadow/ " + str.toString() + righ tSide); 707 return tagHistory->selectorText(" /shadow/ " + str.toString() + righ tSide);
708 case CSSSelector::ShadowDeep: 708 case CSSSelector::ShadowDeep:
709 return tagHistory->selectorText(" /shadow-deep/ " + str.toString() + rightSide); 709 return tagHistory->selectorText(" /deep/ " + str.toString() + rightS ide);
710 case CSSSelector::DirectAdjacent: 710 case CSSSelector::DirectAdjacent:
711 return tagHistory->selectorText(" + " + str.toString() + rightSide); 711 return tagHistory->selectorText(" + " + str.toString() + rightSide);
712 case CSSSelector::IndirectAdjacent: 712 case CSSSelector::IndirectAdjacent:
713 return tagHistory->selectorText(" ~ " + str.toString() + rightSide); 713 return tagHistory->selectorText(" ~ " + str.toString() + rightSide);
714 case CSSSelector::SubSelector: 714 case CSSSelector::SubSelector:
715 ASSERT_NOT_REACHED(); 715 ASSERT_NOT_REACHED();
716 case CSSSelector::ShadowPseudo: 716 case CSSSelector::ShadowPseudo:
717 return tagHistory->selectorText(str.toString() + rightSide); 717 return tagHistory->selectorText(str.toString() + rightSide);
718 } 718 }
719 } 719 }
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 return false; 888 return false;
889 return (count - m_b) % m_a == 0; 889 return (count - m_b) % m_a == 0;
890 } else { 890 } else {
891 if (count > m_b) 891 if (count > m_b)
892 return false; 892 return false;
893 return (m_b - count) % (-m_a) == 0; 893 return (m_b - count) % (-m_a) == 0;
894 } 894 }
895 } 895 }
896 896
897 } // namespace WebCore 897 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/CSSGrammar.y ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698