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

Unified Diff: Source/core/rendering/style/QuotesData.cpp

Issue 15093007: Shrink RenderQuote.o by 134K (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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 | « Source/core/rendering/style/QuotesData.h ('k') | Source/wtf/unicode/CharacterNames.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/style/QuotesData.cpp
diff --git a/Source/core/rendering/style/QuotesData.cpp b/Source/core/rendering/style/QuotesData.cpp
index 876824d8db60bb82789ffde06b62cb562d1cb136..ad313cd09252f5fc5f0a4f059b1cb06e5556290f 100644
--- a/Source/core/rendering/style/QuotesData.cpp
+++ b/Source/core/rendering/style/QuotesData.cpp
@@ -24,27 +24,12 @@
namespace WebCore {
-PassRefPtr<QuotesData> QuotesData::create(String open, String close)
-{
- RefPtr<QuotesData> data = QuotesData::create();
- data->addPair(std::make_pair(open, close));
- return data;
-}
-
-PassRefPtr<QuotesData> QuotesData::create(String open1, String close1, String open2, String close2)
-{
- RefPtr<QuotesData> data = QuotesData::create();
- data->addPair(std::make_pair(open1, close1));
- data->addPair(std::make_pair(open2, close2));
- return data;
-}
-
void QuotesData::addPair(std::pair<String, String> quotePair)
{
m_quotePairs.append(quotePair);
}
-const String QuotesData::getOpenQuote(int index) const
+const String QuotesData::openQuote(int index) const
{
ASSERT(index >= 0);
if (!m_quotePairs.size() || index < 0)
@@ -54,7 +39,7 @@ const String QuotesData::getOpenQuote(int index) const
return m_quotePairs.at(index).first;
}
-const String QuotesData::getCloseQuote(int index) const
+const String QuotesData::closeQuote(int index) const
{
ASSERT(index >= -1);
if (!m_quotePairs.size() || index < 0)
« no previous file with comments | « Source/core/rendering/style/QuotesData.h ('k') | Source/wtf/unicode/CharacterNames.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698