Index: third_party/WebKit/Source/core/html/HTMLOptGroupElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLOptGroupElement.cpp b/third_party/WebKit/Source/core/html/HTMLOptGroupElement.cpp |
index 666919516288a88e6f76a536bdc695e1b6d262d6..fbedbd1734d281e08cc33251caccf0f07b947fcf 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLOptGroupElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLOptGroupElement.cpp |
@@ -43,7 +43,6 @@ using namespace HTMLNames; |
inline HTMLOptGroupElement::HTMLOptGroupElement(Document& document) |
: HTMLElement(optgroupTag, document) { |
- setHasCustomStyleCallbacks(); |
} |
// An explicit empty destructor should be in HTMLOptGroupElement.cpp, because |
@@ -75,19 +74,6 @@ void HTMLOptGroupElement::parseAttribute( |
} |
} |
-void HTMLOptGroupElement::attachLayoutTree(const AttachContext& context) { |
- if (context.resolvedStyle) { |
- DCHECK(!m_style || m_style == context.resolvedStyle); |
- m_style = context.resolvedStyle; |
- } |
- HTMLElement::attachLayoutTree(context); |
-} |
- |
-void HTMLOptGroupElement::detachLayoutTree(const AttachContext& context) { |
- m_style.clear(); |
- HTMLElement::detachLayoutTree(context); |
-} |
- |
bool HTMLOptGroupElement::supportsFocus() const { |
HTMLSelectElement* select = ownerSelectElement(); |
if (select && select->usesMenuList()) |
@@ -117,23 +103,6 @@ void HTMLOptGroupElement::removedFrom(ContainerNode* insertionPoint) { |
HTMLElement::removedFrom(insertionPoint); |
} |
-void HTMLOptGroupElement::updateNonComputedStyle() { |
- m_style = originalStyleForLayoutObject(); |
- if (layoutObject()) { |
- if (HTMLSelectElement* select = ownerSelectElement()) |
- select->updateListOnLayoutObject(); |
- } |
-} |
- |
-ComputedStyle* HTMLOptGroupElement::nonLayoutObjectComputedStyle() const { |
- return m_style.get(); |
-} |
- |
-PassRefPtr<ComputedStyle> HTMLOptGroupElement::customStyleForLayoutObject() { |
- updateNonComputedStyle(); |
- return m_style; |
-} |
- |
String HTMLOptGroupElement::groupLabelText() const { |
String itemText = getAttribute(labelAttr); |