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

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

Issue 202633009: Add Element::subResourceAttributeName() virtual function (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use nullQName() Created 6 years, 9 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/HTMLTableCellElement.cpp ('k') | Source/core/html/HTMLTableElement.cpp » ('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 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 const StylePropertySet* additionalGroupStyle(bool rows); 69 const StylePropertySet* additionalGroupStyle(bool rows);
70 70
71 private: 71 private:
72 explicit HTMLTableElement(Document&); 72 explicit HTMLTableElement(Document&);
73 73
74 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 74 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
75 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 75 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
76 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE; 76 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE;
77 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 77 virtual bool isURLAttribute(const Attribute&) const OVERRIDE;
78 virtual bool hasLegalLinkAttribute(const QualifiedName&) const OVERRIDE; 78 virtual bool hasLegalLinkAttribute(const QualifiedName&) const OVERRIDE;
79 virtual const QualifiedName& subResourceAttributeName() const OVERRIDE;
79 80
80 // Used to obtain either a solid or outset border decl and to deal with the frame and rules attributes. 81 // Used to obtain either a solid or outset border decl and to deal with the frame and rules attributes.
81 virtual const StylePropertySet* additionalPresentationAttributeStyle() OVERR IDE; 82 virtual const StylePropertySet* additionalPresentationAttributeStyle() OVERR IDE;
82 83
83 enum TableRules { UnsetRules, NoneRules, GroupsRules, RowsRules, ColsRules, AllRules }; 84 enum TableRules { UnsetRules, NoneRules, GroupsRules, RowsRules, ColsRules, AllRules };
84 enum CellBorders { NoBorders, SolidBorders, InsetBorders, SolidBordersColsOn ly, SolidBordersRowsOnly }; 85 enum CellBorders { NoBorders, SolidBorders, InsetBorders, SolidBordersColsOn ly, SolidBordersRowsOnly };
85 86
86 CellBorders cellBorders() const; 87 CellBorders cellBorders() const;
87 88
88 PassRefPtr<StylePropertySet> createSharedCellStyle(); 89 PassRefPtr<StylePropertySet> createSharedCellStyle();
89 90
90 HTMLTableSectionElement* lastBody() const; 91 HTMLTableSectionElement* lastBody() const;
91 92
92 void setNeedsTableStyleRecalc() const; 93 void setNeedsTableStyleRecalc() const;
93 94
94 bool m_borderAttr; // Sets a precise border width and creates an ou tset border for the table and for its cells. 95 bool m_borderAttr; // Sets a precise border width and creates an ou tset border for the table and for its cells.
95 bool m_borderColorAttr; // Overrides the outset border and makes it soli d for the table and cells instead. 96 bool m_borderColorAttr; // Overrides the outset border and makes it soli d for the table and cells instead.
96 bool m_frameAttr; // Implies a thin border width if no border is s et and then a certain set of solid/hidden borders based off the value. 97 bool m_frameAttr; // Implies a thin border width if no border is s et and then a certain set of solid/hidden borders based off the value.
97 TableRules m_rulesAttr; // Implies a thin border width, a collapsing bor der model, and all borders on the table becoming set to hidden (if frame/border 98 TableRules m_rulesAttr; // Implies a thin border width, a collapsing bor der model, and all borders on the table becoming set to hidden (if frame/border
98 // are present, to none otherwise). 99 // are present, to none otherwise).
99 100
100 unsigned short m_padding; 101 unsigned short m_padding;
101 RefPtr<StylePropertySet> m_sharedCellStyle; 102 RefPtr<StylePropertySet> m_sharedCellStyle;
102 }; 103 };
103 104
104 } //namespace 105 } //namespace
105 106
106 #endif 107 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLTableCellElement.cpp ('k') | Source/core/html/HTMLTableElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698