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

Unified Diff: Source/core/frame/DOMWindow.cpp

Issue 251043007: Move Window use counters from DOMWindow.cpp to Window.idl where possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/frame/Window.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/DOMWindow.cpp
diff --git a/Source/core/frame/DOMWindow.cpp b/Source/core/frame/DOMWindow.cpp
index 995c3e1aa0fdb74e3055cee2a766e48e1d31d80a..8fbdbf102f9ab3c4b967c125a9979a5c90eadcc2 100644
--- a/Source/core/frame/DOMWindow.cpp
+++ b/Source/core/frame/DOMWindow.cpp
@@ -595,8 +595,6 @@ int DOMWindow::orientation() const
{
ASSERT(RuntimeEnabledFeatures::orientationEventEnabled());
- UseCounter::count(document(), UseCounter::WindowOrientation);
-
if (!m_frame)
return 0;
@@ -619,7 +617,6 @@ History& DOMWindow::history() const
BarProp& DOMWindow::locationbar() const
{
- UseCounter::count(document(), UseCounter::BarPropLocationbar);
if (!m_locationbar)
m_locationbar = BarProp::create(m_frame, BarProp::Locationbar);
return *m_locationbar;
@@ -627,7 +624,6 @@ BarProp& DOMWindow::locationbar() const
BarProp& DOMWindow::menubar() const
{
- UseCounter::count(document(), UseCounter::BarPropMenubar);
if (!m_menubar)
m_menubar = BarProp::create(m_frame, BarProp::Menubar);
return *m_menubar;
@@ -635,7 +631,6 @@ BarProp& DOMWindow::menubar() const
BarProp& DOMWindow::personalbar() const
{
- UseCounter::count(document(), UseCounter::BarPropPersonalbar);
if (!m_personalbar)
m_personalbar = BarProp::create(m_frame, BarProp::Personalbar);
return *m_personalbar;
@@ -643,7 +638,6 @@ BarProp& DOMWindow::personalbar() const
BarProp& DOMWindow::scrollbars() const
{
- UseCounter::count(document(), UseCounter::BarPropScrollbars);
if (!m_scrollbars)
m_scrollbars = BarProp::create(m_frame, BarProp::Scrollbars);
return *m_scrollbars;
@@ -651,7 +645,6 @@ BarProp& DOMWindow::scrollbars() const
BarProp& DOMWindow::statusbar() const
{
- UseCounter::count(document(), UseCounter::BarPropStatusbar);
if (!m_statusbar)
m_statusbar = BarProp::create(m_frame, BarProp::Statusbar);
return *m_statusbar;
@@ -659,7 +652,6 @@ BarProp& DOMWindow::statusbar() const
BarProp& DOMWindow::toolbar() const
{
- UseCounter::count(document(), UseCounter::BarPropToolbar);
if (!m_toolbar)
m_toolbar = BarProp::create(m_frame, BarProp::Toolbar);
return *m_toolbar;
@@ -1288,7 +1280,6 @@ PassRefPtr<CSSStyleDeclaration> DOMWindow::getComputedStyle(Element* elt, const
PassRefPtrWillBeRawPtr<CSSRuleList> DOMWindow::getMatchedCSSRules(Element* element, const String& pseudoElement) const
{
- UseCounter::count(document(), UseCounter::GetMatchedCSSRules);
if (!element)
return nullptr;
« no previous file with comments | « no previous file | Source/core/frame/Window.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698