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

Side by Side Diff: Source/core/html/HTMLTableElement.cpp

Issue 16339006: Make sure to use CSSValueID and CSSPropertyID rather than integers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLFontElement.cpp ('k') | Source/core/html/track/TextTrackCue.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 * (C) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@kde.org)
5 * (C) 1999 Lars Knoll (knoll@kde.org) 5 * (C) 1999 Lars Knoll (knoll@kde.org)
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) 6 * (C) 1999 Antti Koivisto (koivisto@kde.org)
7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2010, 2011 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2010, 2011 Apple Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 if (bordersBefore != cellBorders() || oldPadding != m_padding) { 407 if (bordersBefore != cellBorders() || oldPadding != m_padding) {
408 m_sharedCellStyle = 0; 408 m_sharedCellStyle = 0;
409 bool cellChanged = false; 409 bool cellChanged = false;
410 for (Node* child = firstChild(); child; child = child->nextSibling()) 410 for (Node* child = firstChild(); child; child = child->nextSibling())
411 cellChanged |= setTableCellsChanged(child); 411 cellChanged |= setTableCellsChanged(child);
412 if (cellChanged) 412 if (cellChanged)
413 setNeedsStyleRecalc(); 413 setNeedsStyleRecalc();
414 } 414 }
415 } 415 }
416 416
417 static StylePropertySet* leakBorderStyle(int value) 417 static StylePropertySet* leakBorderStyle(CSSValueID value)
418 { 418 {
419 RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(); 419 RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
420 style->setProperty(CSSPropertyBorderTopStyle, value); 420 style->setProperty(CSSPropertyBorderTopStyle, value);
421 style->setProperty(CSSPropertyBorderBottomStyle, value); 421 style->setProperty(CSSPropertyBorderBottomStyle, value);
422 style->setProperty(CSSPropertyBorderLeftStyle, value); 422 style->setProperty(CSSPropertyBorderLeftStyle, value);
423 style->setProperty(CSSPropertyBorderRightStyle, value); 423 style->setProperty(CSSPropertyBorderRightStyle, value);
424 return style.release().leakRef(); 424 return style.release().leakRef();
425 } 425 }
426 426
427 const StylePropertySet* HTMLTableElement::additionalPresentationAttributeStyle() 427 const StylePropertySet* HTMLTableElement::additionalPresentationAttributeStyle()
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 } 573 }
574 574
575 void HTMLTableElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) cons t 575 void HTMLTableElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) cons t
576 { 576 {
577 HTMLElement::addSubresourceAttributeURLs(urls); 577 HTMLElement::addSubresourceAttributeURLs(urls);
578 578
579 addSubresourceURL(urls, document()->completeURL(getAttribute(backgroundAttr) )); 579 addSubresourceURL(urls, document()->completeURL(getAttribute(backgroundAttr) ));
580 } 580 }
581 581
582 } 582 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFontElement.cpp ('k') | Source/core/html/track/TextTrackCue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698