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

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

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 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/HTMLProgressElement.h ('k') | Source/core/html/HTMLRTElement.h » ('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) 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 { 51 {
52 } 52 }
53 53
54 PassRefPtrWillBeRawPtr<HTMLProgressElement> HTMLProgressElement::create(Document & document) 54 PassRefPtrWillBeRawPtr<HTMLProgressElement> HTMLProgressElement::create(Document & document)
55 { 55 {
56 RefPtrWillBeRawPtr<HTMLProgressElement> progress = adoptRefWillBeNoop(new HT MLProgressElement(document)); 56 RefPtrWillBeRawPtr<HTMLProgressElement> progress = adoptRefWillBeNoop(new HT MLProgressElement(document));
57 progress->ensureClosedShadowRoot(); 57 progress->ensureClosedShadowRoot();
58 return progress.release(); 58 return progress.release();
59 } 59 }
60 60
61 LayoutObject* HTMLProgressElement::createLayoutObject(const LayoutStyle& style) 61 LayoutObject* HTMLProgressElement::createLayoutObject(const ComputedStyle& style )
62 { 62 {
63 if (!style.hasAppearance() || hasOpenShadowRoot()) 63 if (!style.hasAppearance() || hasOpenShadowRoot())
64 return LayoutObject::createObject(this, style); 64 return LayoutObject::createObject(this, style);
65 return new LayoutProgress(this); 65 return new LayoutProgress(this);
66 } 66 }
67 67
68 LayoutProgress* HTMLProgressElement::layoutProgress() const 68 LayoutProgress* HTMLProgressElement::layoutProgress() const
69 { 69 {
70 if (layoutObject() && layoutObject()->isProgress()) 70 if (layoutObject() && layoutObject()->isProgress())
71 return toLayoutProgress(layoutObject()); 71 return toLayoutProgress(layoutObject());
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 lazyReattachIfAttached(); 176 lazyReattachIfAttached();
177 } 177 }
178 178
179 DEFINE_TRACE(HTMLProgressElement) 179 DEFINE_TRACE(HTMLProgressElement)
180 { 180 {
181 visitor->trace(m_value); 181 visitor->trace(m_value);
182 LabelableElement::trace(visitor); 182 LabelableElement::trace(visitor);
183 } 183 }
184 184
185 } // namespace 185 } // namespace
OLDNEW
« no previous file with comments | « Source/core/html/HTMLProgressElement.h ('k') | Source/core/html/HTMLRTElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698