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

Side by Side Diff: Source/core/rendering/RenderDeprecatedFlexibleBox.cpp

Issue 14070021: Rename 'UseCounter::observe' to 'UseCounter::count'. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline. Created 7 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/page/UseCounter.cpp ('k') | Source/core/rendering/RenderLayer.cpp » ('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 * This file is part of the render object implementation for KHTML. 2 * This file is part of the render object implementation for KHTML.
3 * 3 *
4 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 4 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
5 * (C) 1999 Antti Koivisto (koivisto@kde.org) 5 * (C) 1999 Antti Koivisto (koivisto@kde.org)
6 * Copyright (C) 2003 Apple Computer, Inc. 6 * Copyright (C) 2003 Apple Computer, Inc.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 }; 121 };
122 122
123 RenderDeprecatedFlexibleBox::RenderDeprecatedFlexibleBox(Element* element) 123 RenderDeprecatedFlexibleBox::RenderDeprecatedFlexibleBox(Element* element)
124 : RenderBlock(element) 124 : RenderBlock(element)
125 { 125 {
126 setChildrenInline(false); // All of our children must be block-level 126 setChildrenInline(false); // All of our children must be block-level
127 m_stretchingChildren = false; 127 m_stretchingChildren = false;
128 if (!isAnonymous()) { 128 if (!isAnonymous()) {
129 const KURL& url = document()->url(); 129 const KURL& url = document()->url();
130 if (url.protocolIs("chrome")) 130 if (url.protocolIs("chrome"))
131 UseCounter::observe(document(), UseCounter::DeprecatedFlexboxChrome) ; 131 UseCounter::count(document(), UseCounter::DeprecatedFlexboxChrome);
132 else if (url.protocolIs("chrome-extension")) 132 else if (url.protocolIs("chrome-extension"))
133 UseCounter::observe(document(), UseCounter::DeprecatedFlexboxChromeE xtension); 133 UseCounter::count(document(), UseCounter::DeprecatedFlexboxChromeExt ension);
134 else 134 else
135 UseCounter::observe(document(), UseCounter::DeprecatedFlexboxWebCont ent); 135 UseCounter::count(document(), UseCounter::DeprecatedFlexboxWebConten t);
136 } 136 }
137 } 137 }
138 138
139 RenderDeprecatedFlexibleBox::~RenderDeprecatedFlexibleBox() 139 RenderDeprecatedFlexibleBox::~RenderDeprecatedFlexibleBox()
140 { 140 {
141 } 141 }
142 142
143 RenderDeprecatedFlexibleBox* RenderDeprecatedFlexibleBox::createAnonymous(Docume nt* document) 143 RenderDeprecatedFlexibleBox* RenderDeprecatedFlexibleBox::createAnonymous(Docume nt* document)
144 { 144 {
145 RenderDeprecatedFlexibleBox* renderer = new (document->renderArena()) Render DeprecatedFlexibleBox(0); 145 RenderDeprecatedFlexibleBox* renderer = new (document->renderArena()) Render DeprecatedFlexibleBox(0);
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
1099 if (isPseudoElement()) 1099 if (isPseudoElement())
1100 return "RenderDeprecatedFlexibleBox (generated)"; 1100 return "RenderDeprecatedFlexibleBox (generated)";
1101 if (isAnonymous()) 1101 if (isAnonymous())
1102 return "RenderDeprecatedFlexibleBox (generated)"; 1102 return "RenderDeprecatedFlexibleBox (generated)";
1103 if (isRelPositioned()) 1103 if (isRelPositioned())
1104 return "RenderDeprecatedFlexibleBox (relative positioned)"; 1104 return "RenderDeprecatedFlexibleBox (relative positioned)";
1105 return "RenderDeprecatedFlexibleBox"; 1105 return "RenderDeprecatedFlexibleBox";
1106 } 1106 }
1107 1107
1108 } // namespace WebCore 1108 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/UseCounter.cpp ('k') | Source/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698