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

Unified Diff: Source/core/html/HTMLOptGroupElement.cpp

Issue 165433002: Recalc OPTION and OPTGROUP from recalcOwnStyle. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLOptGroupElement.cpp
diff --git a/Source/core/html/HTMLOptGroupElement.cpp b/Source/core/html/HTMLOptGroupElement.cpp
index 1f1a4130aa0caff817bf9eacb4a8fd9dc4c9d8dc..c074d37efea2a762a666b84819148dbbd48a498f 100644
--- a/Source/core/html/HTMLOptGroupElement.cpp
+++ b/Source/core/html/HTMLOptGroupElement.cpp
@@ -106,13 +106,9 @@ RenderStyle* HTMLOptGroupElement::nonRendererStyle() const
PassRefPtr<RenderStyle> HTMLOptGroupElement::customStyleForRenderer()
{
- return m_style;
-}
-
-void HTMLOptGroupElement::willRecalcStyle(StyleRecalcChange change)
-{
- if (!needsAttach() && (needsStyleRecalc() || change >= Inherit))
+ if (!needsAttach())
updateNonRenderStyle();
esprehn 2014/02/14 00:46:20 Why do you skip this for reattach?
rune 2014/02/14 09:42:08 Done.
+ return m_style;
}
String HTMLOptGroupElement::groupLabelText() const

Powered by Google App Engine
This is Rietveld 408576698