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

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

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix a crashers (everything is building!) Created 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 { 48 {
49 } 49 }
50 50
51 PassRefPtrWillBeRawPtr<HTMLMeterElement> HTMLMeterElement::create(Document& docu ment) 51 PassRefPtrWillBeRawPtr<HTMLMeterElement> HTMLMeterElement::create(Document& docu ment)
52 { 52 {
53 RefPtrWillBeRawPtr<HTMLMeterElement> meter = adoptRefWillBeNoop(new HTMLMete rElement(document)); 53 RefPtrWillBeRawPtr<HTMLMeterElement> meter = adoptRefWillBeNoop(new HTMLMete rElement(document));
54 meter->ensureUserAgentShadowRoot(); 54 meter->ensureUserAgentShadowRoot();
55 return meter.release(); 55 return meter.release();
56 } 56 }
57 57
58 RenderObject* HTMLMeterElement::createRenderer(RenderStyle* style) 58 RenderObject* HTMLMeterElement::createRenderer(const RenderStyle* style)
59 { 59 {
60 if (hasAuthorShadowRoot() || !LayoutTheme::theme().supportsMeter(style->appe arance())) 60 if (hasAuthorShadowRoot() || !LayoutTheme::theme().supportsMeter(style->appe arance()))
61 return RenderObject::createObject(this, style); 61 return RenderObject::createObject(this, style);
62 62
63 return new RenderMeter(this); 63 return new RenderMeter(this);
64 } 64 }
65 65
66 void HTMLMeterElement::parseAttribute(const QualifiedName& name, const AtomicStr ing& value) 66 void HTMLMeterElement::parseAttribute(const QualifiedName& name, const AtomicStr ing& value)
67 { 67 {
68 if (name == valueAttr || name == minAttr || name == maxAttr || name == lowAt tr || name == highAttr || name == optimumAttr) 68 if (name == valueAttr || name == minAttr || name == maxAttr || name == lowAt tr || name == highAttr || name == optimumAttr)
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 inner->appendChild(bar); 212 inner->appendChild(bar);
213 } 213 }
214 214
215 void HTMLMeterElement::trace(Visitor* visitor) 215 void HTMLMeterElement::trace(Visitor* visitor)
216 { 216 {
217 visitor->trace(m_value); 217 visitor->trace(m_value);
218 LabelableElement::trace(visitor); 218 LabelableElement::trace(visitor);
219 } 219 }
220 220
221 } // namespace 221 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698