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

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

Issue 139773002: Remove some isPresentationAttribute implementations (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « Source/core/html/HTMLTableCaptionElement.h ('k') | no next file » | 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, 2010 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2010 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 25 matching lines...) Expand all
36 : HTMLElement(captionTag, document) 36 : HTMLElement(captionTag, document)
37 { 37 {
38 ScriptWrappable::init(this); 38 ScriptWrappable::init(this);
39 } 39 }
40 40
41 PassRefPtr<HTMLTableCaptionElement> HTMLTableCaptionElement::create(Document& do cument) 41 PassRefPtr<HTMLTableCaptionElement> HTMLTableCaptionElement::create(Document& do cument)
42 { 42 {
43 return adoptRef(new HTMLTableCaptionElement(document)); 43 return adoptRef(new HTMLTableCaptionElement(document));
44 } 44 }
45 45
46 bool HTMLTableCaptionElement::isPresentationAttribute(const QualifiedName& name) const
47 {
48 if (name == alignAttr)
49 return true;
50 return HTMLElement::isPresentationAttribute(name);
51 }
52
53 void HTMLTableCaptionElement::collectStyleForPresentationAttribute(const Qualifi edName& name, const AtomicString& value, MutableStylePropertySet* style) 46 void HTMLTableCaptionElement::collectStyleForPresentationAttribute(const Qualifi edName& name, const AtomicString& value, MutableStylePropertySet* style)
54 { 47 {
55 if (name == alignAttr) { 48 if (name == alignAttr) {
56 if (!value.isEmpty()) 49 if (!value.isEmpty())
57 addPropertyToPresentationAttributeStyle(style, CSSPropertyCaptionSid e, value); 50 addPropertyToPresentationAttributeStyle(style, CSSPropertyCaptionSid e, value);
58 } else 51 } else
59 HTMLElement::collectStyleForPresentationAttribute(name, value, style); 52 HTMLElement::collectStyleForPresentationAttribute(name, value, style);
60 } 53 }
61 54
62 } 55 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLTableCaptionElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698