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

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

Issue 2064473002: Don't need to preserve CSS line-height property during editing operation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaseline: webkit_unit_tests Created 4 years, 6 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) 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 static const CSSPropertyID staticEditingProperties[] = { 76 static const CSSPropertyID staticEditingProperties[] = {
77 CSSPropertyBackgroundColor, 77 CSSPropertyBackgroundColor,
78 CSSPropertyColor, 78 CSSPropertyColor,
79 CSSPropertyFontFamily, 79 CSSPropertyFontFamily,
80 CSSPropertyFontSize, 80 CSSPropertyFontSize,
81 CSSPropertyFontStyle, 81 CSSPropertyFontStyle,
82 CSSPropertyFontVariantLigatures, 82 CSSPropertyFontVariantLigatures,
83 CSSPropertyFontVariantCaps, 83 CSSPropertyFontVariantCaps,
84 CSSPropertyFontWeight, 84 CSSPropertyFontWeight,
85 CSSPropertyLetterSpacing, 85 CSSPropertyLetterSpacing,
86 CSSPropertyLineHeight,
87 CSSPropertyOrphans, 86 CSSPropertyOrphans,
88 CSSPropertyTextAlign, 87 CSSPropertyTextAlign,
89 // FIXME: CSSPropertyTextDecoration needs to be removed when CSS3 Text 88 // FIXME: CSSPropertyTextDecoration needs to be removed when CSS3 Text
90 // Decoration feature is no longer experimental. 89 // Decoration feature is no longer experimental.
91 CSSPropertyTextDecoration, 90 CSSPropertyTextDecoration,
92 CSSPropertyTextDecorationLine, 91 CSSPropertyTextDecorationLine,
93 CSSPropertyTextIndent, 92 CSSPropertyTextIndent,
94 CSSPropertyTextTransform, 93 CSSPropertyTextTransform,
95 CSSPropertyWhiteSpace, 94 CSSPropertyWhiteSpace,
96 CSSPropertyWidows, 95 CSSPropertyWidows,
(...skipping 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after
1754 { 1753 {
1755 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) { 1754 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) {
1756 CSSComputedStyleDeclaration* ancestorStyle = CSSComputedStyleDeclaration ::create(ancestor); 1755 CSSComputedStyleDeclaration* ancestorStyle = CSSComputedStyleDeclaration ::create(ancestor);
1757 if (!hasTransparentBackgroundColor(ancestorStyle)) 1756 if (!hasTransparentBackgroundColor(ancestorStyle))
1758 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor ); 1757 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor );
1759 } 1758 }
1760 return nullptr; 1759 return nullptr;
1761 } 1760 }
1762 1761
1763 } // namespace blink 1762 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698