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

Side by Side Diff: sky/engine/core/css/resolver/StyleBuilderConverter.cpp

Issue 667003003: Remove most of visited link support. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 // Fractional unit. 50 // Fractional unit.
51 if (primitiveValue->isFlex()) 51 if (primitiveValue->isFlex())
52 return GridLength(primitiveValue->getDoubleValue()); 52 return GridLength(primitiveValue->getDoubleValue());
53 53
54 return primitiveValue->convertToLength<FixedConversion | PercentConversion | AutoConversion>(state.cssToLengthConversionData()); 54 return primitiveValue->convertToLength<FixedConversion | PercentConversion | AutoConversion>(state.cssToLengthConversionData());
55 } 55 }
56 56
57 } // namespace 57 } // namespace
58 58
59 Color StyleBuilderConverter::convertColor(StyleResolverState& state, CSSValue* v alue, bool forVisitedLink) 59 Color StyleBuilderConverter::convertColor(StyleResolverState& state, CSSValue* v alue)
60 { 60 {
61 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); 61 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
62 return state.document().textLinkColors().colorFromPrimitiveValue(primitiveVa lue, state.style()->color(), forVisitedLink); 62 return state.document().textLinkColors().colorFromPrimitiveValue(primitiveVa lue, state.style()->color());
63 } 63 }
64 64
65 AtomicString StyleBuilderConverter::convertFragmentIdentifier(StyleResolverState & state, CSSValue* value) 65 AtomicString StyleBuilderConverter::convertFragmentIdentifier(StyleResolverState & state, CSSValue* value)
66 { 66 {
67 return nullAtom; 67 return nullAtom;
68 } 68 }
69 69
70 LengthBox StyleBuilderConverter::convertClip(StyleResolverState& state, CSSValue * value) 70 LengthBox StyleBuilderConverter::convertClip(StyleResolverState& state, CSSValue * value)
71 { 71 {
72 Rect* rect = toCSSPrimitiveValue(value)->getRectValue(); 72 Rect* rect = toCSSPrimitiveValue(value)->getRectValue();
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 { 423 {
424 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); 424 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
425 if (primitiveValue->getValueID()) { 425 if (primitiveValue->getValueID()) {
426 float multiplier = convertLineWidth<float>(state, value); 426 float multiplier = convertLineWidth<float>(state, value);
427 return CSSPrimitiveValue::create(multiplier / 48, CSSPrimitiveValue::CSS _EMS)->computeLength<float>(state.cssToLengthConversionData()); 427 return CSSPrimitiveValue::create(multiplier / 48, CSSPrimitiveValue::CSS _EMS)->computeLength<float>(state.cssToLengthConversionData());
428 } 428 }
429 return primitiveValue->computeLength<float>(state.cssToLengthConversionData( )); 429 return primitiveValue->computeLength<float>(state.cssToLengthConversionData( ));
430 } 430 }
431 431
432 } // namespace blink 432 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/css/resolver/StyleBuilderConverter.h ('k') | sky/engine/core/css/resolver/StyleBuilderCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698