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

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

Issue 1710003002: Unprefix multicol properties. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase master Created 4 years, 10 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 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 return copy; 601 return copy;
602 } 602 }
603 603
604 // This is the list of CSS properties that apply specially to block-level elemen ts. 604 // This is the list of CSS properties that apply specially to block-level elemen ts.
605 static const CSSPropertyID staticBlockProperties[] = { 605 static const CSSPropertyID staticBlockProperties[] = {
606 CSSPropertyBreakAfter, 606 CSSPropertyBreakAfter,
607 CSSPropertyBreakBefore, 607 CSSPropertyBreakBefore,
608 CSSPropertyBreakInside, 608 CSSPropertyBreakInside,
609 CSSPropertyOrphans, 609 CSSPropertyOrphans,
610 CSSPropertyOverflow, // This can be also be applied to replaced elements 610 CSSPropertyOverflow, // This can be also be applied to replaced elements
611 CSSPropertyWebkitColumnCount, 611 CSSPropertyColumnCount,
612 CSSPropertyWebkitColumnGap, 612 CSSPropertyColumnGap,
613 CSSPropertyWebkitColumnRuleColor, 613 CSSPropertyColumnRuleColor,
614 CSSPropertyWebkitColumnRuleStyle, 614 CSSPropertyColumnRuleStyle,
615 CSSPropertyWebkitColumnRuleWidth, 615 CSSPropertyColumnRuleWidth,
616 CSSPropertyWebkitColumnBreakBefore, 616 CSSPropertyWebkitColumnBreakBefore,
617 CSSPropertyWebkitColumnBreakAfter, 617 CSSPropertyWebkitColumnBreakAfter,
618 CSSPropertyWebkitColumnBreakInside, 618 CSSPropertyWebkitColumnBreakInside,
619 CSSPropertyWebkitColumnWidth, 619 CSSPropertyColumnWidth,
620 CSSPropertyPageBreakAfter, 620 CSSPropertyPageBreakAfter,
621 CSSPropertyPageBreakBefore, 621 CSSPropertyPageBreakBefore,
622 CSSPropertyPageBreakInside, 622 CSSPropertyPageBreakInside,
623 CSSPropertyTextAlign, 623 CSSPropertyTextAlign,
624 CSSPropertyTextAlignLast, 624 CSSPropertyTextAlignLast,
625 CSSPropertyTextIndent, 625 CSSPropertyTextIndent,
626 CSSPropertyTextJustify, 626 CSSPropertyTextJustify,
627 CSSPropertyWidows 627 CSSPropertyWidows
628 }; 628 };
629 629
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
1727 { 1727 {
1728 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) { 1728 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) {
1729 RefPtrWillBeRawPtr<CSSComputedStyleDeclaration> ancestorStyle = CSSCompu tedStyleDeclaration::create(ancestor); 1729 RefPtrWillBeRawPtr<CSSComputedStyleDeclaration> ancestorStyle = CSSCompu tedStyleDeclaration::create(ancestor);
1730 if (!hasTransparentBackgroundColor(ancestorStyle.get())) 1730 if (!hasTransparentBackgroundColor(ancestorStyle.get()))
1731 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor ); 1731 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor );
1732 } 1732 }
1733 return nullptr; 1733 return nullptr;
1734 } 1734 }
1735 1735
1736 } // namespace blink 1736 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698