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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.h

Issue 1738623004: Rename enums/functions that collide in chromium style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-4
Patch Set: get-names-5: rebase-and-stuff Created 4 years, 10 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
Index: third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.h
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.h b/third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.h
index e12447f7a5fc8b2faf574eae871883d85e637e4a..16492ee1c58b5f9af60161b893e3b278a74e4150 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.h
+++ b/third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.h
@@ -57,7 +57,7 @@ public:
bool hasHeight() const { return m_resourceHeight >= 0; }
float density() const { ASSERT(hasDensity()); return m_density; }
- unsigned resourceWidth() const { ASSERT(hasWidth()); return m_resourceWidth; }
+ unsigned getResourceWidth() const { ASSERT(hasWidth()); return m_resourceWidth; }
unsigned resourceHeight() const { ASSERT(hasHeight()); return m_resourceHeight; }
void setResourceWidth(int width) { ASSERT(width >= 0); m_resourceWidth = (unsigned)width; }
@@ -88,7 +88,7 @@ public:
ImageCandidate(const String& source, unsigned start, unsigned length, const DescriptorParsingResult& result, OriginAttribute originAttribute)
: m_string(source.createView(start, length))
, m_density(result.hasDensity()?result.density():UninitializedDescriptor)
- , m_resourceWidth(result.hasWidth()?result.resourceWidth():UninitializedDescriptor)
+ , m_resourceWidth(result.hasWidth()?result.getResourceWidth():UninitializedDescriptor)
, m_originAttribute(originAttribute)
{
}
@@ -113,7 +113,7 @@ public:
return m_density;
}
- int resourceWidth() const
+ int getResourceWidth() const
{
return m_resourceWidth;
}

Powered by Google App Engine
This is Rietveld 408576698