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

Unified Diff: Source/core/rendering/RenderThemeChromiumWin.cpp

Issue 738113003: Refactor RenderThemeChromiumDefault (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix android build Created 6 years, 1 month 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/rendering/RenderThemeChromiumWin.cpp
diff --git a/Source/core/accessibility/AXObjectCache.cpp b/Source/core/rendering/RenderThemeChromiumWin.cpp
similarity index 77%
copy from Source/core/accessibility/AXObjectCache.cpp
copy to Source/core/rendering/RenderThemeChromiumWin.cpp
index bf0853456edc7006d426f5c75837015f5686a542..9f57ca0eb5e81a00892b9a36532763b03c2d18ef 100644
--- a/Source/core/accessibility/AXObjectCache.cpp
+++ b/Source/core/rendering/RenderThemeChromiumWin.cpp
@@ -1,5 +1,5 @@
/*
tkent 2014/11/20 01:53:26 Please use Chromium-style header. http://www.chrom
- * Copyright (C) 2008, 2009, 2010 Apple Inc. All rights reserved.
+ * Copyright (C) 2014 Samsung Electronics. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -10,9 +10,6 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
- * its contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
@@ -27,17 +24,21 @@
*/
#include "config.h"
+#include "core/rendering/RenderThemeChromiumWin.h"
-#include "core/accessibility/AXObjectCache.h"
+#include "core/UserAgentStyleSheets.h"
namespace blink {
-AXObjectCache::AXObjectCache()
+PassRefPtr<RenderTheme> RenderThemeChromiumWin::create()
{
+ return adoptRef(new RenderThemeChromiumWin());
}
-AXObjectCache::~AXObjectCache()
+RenderTheme& RenderTheme::theme()
{
+ DEFINE_STATIC_REF(RenderTheme, renderTheme, (RenderThemeChromiumWin::create()));
+ return *renderTheme;
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698