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

Unified Diff: Source/core/html/HTMLTableElement.cpp

Issue 15864004: Move create() methods from StylePropertySet to MutableStylePropertySet. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/editing/EditorCommand.cpp ('k') | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLTableElement.cpp
diff --git a/Source/core/html/HTMLTableElement.cpp b/Source/core/html/HTMLTableElement.cpp
index 8d384898e3cecb36a6faee841312b860fdd93131..dbf971663b461c800594ae2114898bc52f6061c1 100644
--- a/Source/core/html/HTMLTableElement.cpp
+++ b/Source/core/html/HTMLTableElement.cpp
@@ -416,7 +416,7 @@ void HTMLTableElement::parseAttribute(const QualifiedName& name, const AtomicStr
static StylePropertySet* leakBorderStyle(int value)
{
- RefPtr<StylePropertySet> style = StylePropertySet::create();
+ RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
style->setProperty(CSSPropertyBorderTopStyle, value);
style->setProperty(CSSPropertyBorderBottomStyle, value);
style->setProperty(CSSPropertyBorderLeftStyle, value);
@@ -472,7 +472,7 @@ HTMLTableElement::CellBorders HTMLTableElement::cellBorders() const
PassRefPtr<StylePropertySet> HTMLTableElement::createSharedCellStyle()
{
- RefPtr<StylePropertySet> style = StylePropertySet::create();
+ RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
switch (cellBorders()) {
case SolidBordersColsOnly:
@@ -519,7 +519,7 @@ const StylePropertySet* HTMLTableElement::additionalCellStyle()
static StylePropertySet* leakGroupBorderStyle(int rows)
{
- RefPtr<StylePropertySet> style = StylePropertySet::create();
+ RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
if (rows) {
style->setProperty(CSSPropertyBorderTopWidth, CSSValueThin);
style->setProperty(CSSPropertyBorderBottomWidth, CSSValueThin);
« no previous file with comments | « Source/core/editing/EditorCommand.cpp ('k') | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698