Commit cb45c4f6 authored by ch.dumez@samsung.com's avatar ch.dumez@samsung.com

Un-inline KURL's default constructor to avoid bloating

Un-inline KURL's default constructor to avoid bloating. KURL has non-POD data
members and its constructor is thus non-trivial.

This reduces the release binary size by ~17Kb.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/307193002

git-svn-id: svn://svn.chromium.org/blink/trunk@175216 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent a2987e4a
...@@ -176,6 +176,12 @@ String KURL::elidedString() const ...@@ -176,6 +176,12 @@ String KURL::elidedString() const
return string().left(511) + "..." + string().right(510); return string().left(511) + "..." + string().right(510);
} }
KURL::KURL()
: m_isValid(false)
, m_protocolIsInHTTPFamily(false)
{
}
// Initializes with a string representing an absolute URL. No encoding // Initializes with a string representing an absolute URL. No encoding
// information is specified. This generally happens when a KURL is converted // information is specified. This generally happens when a KURL is converted
// to a string and then converted back. In this case, the URL is already // to a string and then converted back. In this case, the URL is already
......
...@@ -46,12 +46,7 @@ enum ParsedURLStringTag { ParsedURLString }; ...@@ -46,12 +46,7 @@ enum ParsedURLStringTag { ParsedURLString };
class PLATFORM_EXPORT KURL { class PLATFORM_EXPORT KURL {
public: public:
KURL() KURL();
: m_isValid(false)
, m_protocolIsInHTTPFamily(false)
{
}
KURL(const KURL&); KURL(const KURL&);
KURL& operator=(const KURL&); KURL& operator=(const KURL&);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment