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

Unified Diff: third_party/WebKit/Source/core/html/HTMLTableCellElement.cpp

Issue 2502803002: Restrict scope attribute on table cells (Closed)
Patch Set: Patch for landing Created 4 years, 1 month 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
Index: third_party/WebKit/Source/core/html/HTMLTableCellElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLTableCellElement.cpp b/third_party/WebKit/Source/core/html/HTMLTableCellElement.cpp
index 3332420a33af5bc4b3a797295af8f2cfc03efa02..c414195daca17161efb89a1043eb1be98da77a7e 100644
--- a/third_party/WebKit/Source/core/html/HTMLTableCellElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLTableCellElement.cpp
@@ -174,29 +174,4 @@ void HTMLTableCellElement::setRowSpan(unsigned n) {
setUnsignedIntegralAttribute(rowspanAttr, n);
}
-const AtomicString& HTMLTableCellElement::scope() const {
- const AtomicString& scopeValue = fastGetAttribute(scopeAttr);
- if (equalIgnoringASCIICase(scopeValue, "row")) {
- DEFINE_STATIC_LOCAL(const AtomicString, row, ("row"));
- return row;
- }
- if (equalIgnoringASCIICase(scopeValue, "col")) {
- DEFINE_STATIC_LOCAL(const AtomicString, col, ("col"));
- return col;
- }
- if (equalIgnoringASCIICase(scopeValue, "rowgroup")) {
- DEFINE_STATIC_LOCAL(const AtomicString, rowgroup, ("rowgroup"));
- return rowgroup;
- }
- if (equalIgnoringASCIICase(scopeValue, "colgroup")) {
- DEFINE_STATIC_LOCAL(const AtomicString, colgroup, ("colgroup"));
- return colgroup;
- }
- return emptyAtom;
-}
-
-void HTMLTableCellElement::setScope(const AtomicString& value) {
- setAttribute(scopeAttr, value);
-}
-
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698