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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp

Issue 1885453002: Rename Node::treeScope() to Node::treeScopeOrDocument() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * * Redistributions of source code must retain the above copyright 4 * * Redistributions of source code must retain the above copyright
5 * notice, this list of conditions and the following disclaimer. 5 * notice, this list of conditions and the following disclaimer.
6 * * Redistributions in binary form must reproduce the above 6 * * Redistributions in binary form must reproduce the above
7 * copyright notice, this list of conditions and the following disclaimer 7 * copyright notice, this list of conditions and the following disclaimer
8 * in the documentation and/or other materials provided with the 8 * in the documentation and/or other materials provided with the
9 * distribution. 9 * distribution.
10 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 } 92 }
93 93
94 Color StyleBuilderConverter::convertColor(StyleResolverState& state, const CSSVa lue& value, bool forVisitedLink) 94 Color StyleBuilderConverter::convertColor(StyleResolverState& state, const CSSVa lue& value, bool forVisitedLink)
95 { 95 {
96 return state.document().textLinkColors().colorFromCSSValue(value, state.styl e()->color(), forVisitedLink); 96 return state.document().textLinkColors().colorFromCSSValue(value, state.styl e()->color(), forVisitedLink);
97 } 97 }
98 98
99 AtomicString StyleBuilderConverter::convertFragmentIdentifier(StyleResolverState & state, const CSSValue& value) 99 AtomicString StyleBuilderConverter::convertFragmentIdentifier(StyleResolverState & state, const CSSValue& value)
100 { 100 {
101 if (value.isURIValue()) 101 if (value.isURIValue())
102 return SVGURIReference::fragmentIdentifierFromIRIString(toCSSURIValue(va lue).value(), state.element()->treeScope()); 102 return SVGURIReference::fragmentIdentifierFromIRIString(toCSSURIValue(va lue).value(), state.element()->treeScopeOrDocument());
103 return nullAtom; 103 return nullAtom;
104 } 104 }
105 105
106 LengthBox StyleBuilderConverter::convertClip(StyleResolverState& state, const CS SValue& value) 106 LengthBox StyleBuilderConverter::convertClip(StyleResolverState& state, const CS SValue& value)
107 { 107 {
108 const CSSQuadValue& rect = toCSSQuadValue(value); 108 const CSSQuadValue& rect = toCSSQuadValue(value);
109 109
110 return LengthBox(convertLengthOrAuto(state, *rect.top()), 110 return LengthBox(convertLengthOrAuto(state, *rect.top()),
111 convertLengthOrAuto(state, *rect.right()), 111 convertLengthOrAuto(state, *rect.right()),
112 convertLengthOrAuto(state, *rect.bottom()), 112 convertLengthOrAuto(state, *rect.bottom()),
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
972 972
973 PassRefPtr<StylePath> StyleBuilderConverter::convertPathOrNone(StyleResolverStat e& state, const CSSValue& value) 973 PassRefPtr<StylePath> StyleBuilderConverter::convertPathOrNone(StyleResolverStat e& state, const CSSValue& value)
974 { 974 {
975 if (value.isPathValue()) 975 if (value.isPathValue())
976 return toCSSPathValue(value).stylePath(); 976 return toCSSPathValue(value).stylePath();
977 ASSERT(value.isPrimitiveValue() && toCSSPrimitiveValue(value).getValueID() = = CSSValueNone); 977 ASSERT(value.isPrimitiveValue() && toCSSPrimitiveValue(value).getValueID() = = CSSValueNone);
978 return nullptr; 978 return nullptr;
979 } 979 }
980 980
981 } // namespace blink 981 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/SelectorChecker.cpp ('k') | third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698