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

Side by Side Diff: third_party/WebKit/Source/core/editing/EditingStyle.cpp

Issue 2520873002: [css-ui] Add support for caret-color property (Closed)
Patch Set: Add new baselines for Mac and Windows Created 4 years 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) 2007, 2008, 2009 Apple Computer, Inc. 2 * Copyright (C) 2007, 2008, 2009 Apple Computer, Inc.
3 * Copyright (C) 2010, 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2010, 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 CSSPropertyFontSize, CSSPropertyFontStyle, CSSPropertyFontVariantLigatures, 82 CSSPropertyFontSize, CSSPropertyFontStyle, CSSPropertyFontVariantLigatures,
83 CSSPropertyFontVariantCaps, CSSPropertyFontWeight, CSSPropertyLetterSpacing, 83 CSSPropertyFontVariantCaps, CSSPropertyFontWeight, CSSPropertyLetterSpacing,
84 CSSPropertyOrphans, CSSPropertyTextAlign, 84 CSSPropertyOrphans, CSSPropertyTextAlign,
85 // FIXME: CSSPropertyTextDecoration needs to be removed when CSS3 Text 85 // FIXME: CSSPropertyTextDecoration needs to be removed when CSS3 Text
86 // Decoration feature is no longer experimental. 86 // Decoration feature is no longer experimental.
87 CSSPropertyTextDecoration, CSSPropertyTextDecorationLine, 87 CSSPropertyTextDecoration, CSSPropertyTextDecorationLine,
88 CSSPropertyTextIndent, CSSPropertyTextTransform, CSSPropertyWhiteSpace, 88 CSSPropertyTextIndent, CSSPropertyTextTransform, CSSPropertyWhiteSpace,
89 CSSPropertyWidows, CSSPropertyWordSpacing, 89 CSSPropertyWidows, CSSPropertyWordSpacing,
90 CSSPropertyWebkitTextDecorationsInEffect, CSSPropertyWebkitTextFillColor, 90 CSSPropertyWebkitTextDecorationsInEffect, CSSPropertyWebkitTextFillColor,
91 CSSPropertyWebkitTextStrokeColor, CSSPropertyWebkitTextStrokeWidth, 91 CSSPropertyWebkitTextStrokeColor, CSSPropertyWebkitTextStrokeWidth,
92 }; 92 CSSPropertyCaretColor};
93 93
94 enum EditingPropertiesType { 94 enum EditingPropertiesType {
95 OnlyInheritableEditingProperties, 95 OnlyInheritableEditingProperties,
96 AllEditingProperties 96 AllEditingProperties
97 }; 97 };
98 98
99 static const Vector<CSSPropertyID>& allEditingProperties() { 99 static const Vector<CSSPropertyID>& allEditingProperties() {
100 DEFINE_STATIC_LOCAL(Vector<CSSPropertyID>, properties, ()); 100 DEFINE_STATIC_LOCAL(Vector<CSSPropertyID>, properties, ());
101 if (properties.isEmpty()) { 101 if (properties.isEmpty()) {
102 CSSPropertyMetadata::filterEnabledCSSPropertiesIntoVector( 102 CSSPropertyMetadata::filterEnabledCSSPropertiesIntoVector(
(...skipping 1934 matching lines...) Expand 10 before | Expand all | Expand 10 after
2037 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) { 2037 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) {
2038 CSSComputedStyleDeclaration* ancestorStyle = 2038 CSSComputedStyleDeclaration* ancestorStyle =
2039 CSSComputedStyleDeclaration::create(ancestor); 2039 CSSComputedStyleDeclaration::create(ancestor);
2040 if (!hasTransparentBackgroundColor(ancestorStyle)) 2040 if (!hasTransparentBackgroundColor(ancestorStyle))
2041 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor); 2041 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor);
2042 } 2042 }
2043 return nullptr; 2043 return nullptr;
2044 } 2044 }
2045 2045
2046 } // namespace blink 2046 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698