Skip to content

Commit

Permalink
Merged r237487 - Fix release build with -DLOG_DISABLED=0
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=190866

Reviewed by Xabier Rodriguez-Calvar.

No new tests since no functionality changed.

* platform/graphics/Font.cpp:
* platform/graphics/Font.h:
* platform/graphics/FontPlatformData.h:
* platform/graphics/cocoa/FontPlatformDataCocoa.mm:
* platform/graphics/freetype/FontPlatformDataFreeType.cpp:
* platform/graphics/win/FontPlatformDataWin.cpp:
  • Loading branch information
aperezdc committed Nov 17, 2018
1 parent cd6b344 commit 4350c03
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 6 deletions.
16 changes: 16 additions & 0 deletions Source/WebCore/ChangeLog
@@ -1,3 +1,19 @@
2018-10-27 Charlie Turner <cturner@igalia.com>

Fix release build with -DLOG_DISABLED=0
https://bugs.webkit.org/show_bug.cgi?id=190866

Reviewed by Xabier Rodriguez-Calvar.

No new tests since no functionality changed.

* platform/graphics/Font.cpp:
* platform/graphics/Font.h:
* platform/graphics/FontPlatformData.h:
* platform/graphics/cocoa/FontPlatformDataCocoa.mm:
* platform/graphics/freetype/FontPlatformDataFreeType.cpp:
* platform/graphics/win/FontPlatformDataWin.cpp:

2018-11-16 Jer Noble <jer.noble@apple.com>

An early return from updateSchedulingInfo can leave some variables uninitialized.
Expand Down
2 changes: 1 addition & 1 deletion Source/WebCore/platform/graphics/Font.cpp
Expand Up @@ -454,7 +454,7 @@ const Font& Font::brokenIdeographFont() const
return *derivedFontData.brokenIdeographFont;
}

#ifndef NDEBUG
#if !LOG_DISABLED
String Font::description() const
{
if (origin() == Origin::Remote)
Expand Down
2 changes: 1 addition & 1 deletion Source/WebCore/platform/graphics/Font.h
Expand Up @@ -185,7 +185,7 @@ class Font : public RefCounted<Font> {
bool isInterstitial() const { return m_isInterstitial; }
Visibility visibility() const { return m_visibility; }

#ifndef NDEBUG
#if !LOG_DISABLED
String description() const;
#endif

Expand Down
2 changes: 1 addition & 1 deletion Source/WebCore/platform/graphics/FontPlatformData.h
Expand Up @@ -199,7 +199,7 @@ class FontPlatformData {
RefPtr<SharedBuffer> openTypeTable(uint32_t table) const;
#endif

#ifndef NDEBUG
#if !LOG_DISABLED
String description() const;
#endif

Expand Down
Expand Up @@ -196,7 +196,7 @@ static CFDictionaryRef cascadeToLastResortAttributesDictionary()
return nullptr;
}

#ifndef NDEBUG
#if !LOG_DISABLED
String FontPlatformData::description() const
{
auto fontDescription = adoptCF(CFCopyDescription(font()));
Expand Down
Expand Up @@ -265,7 +265,7 @@ bool FontPlatformData::platformIsEqual(const FontPlatformData& other) const
return m_scaledFont == other.m_scaledFont;
}

#ifndef NDEBUG
#if !LOG_DISABLED
String FontPlatformData::description() const
{
return String();
Expand Down
Expand Up @@ -88,7 +88,7 @@ RefPtr<SharedBuffer> FontPlatformData::openTypeTable(uint32_t table) const
return buffer;
}

#ifndef NDEBUG
#if !LOG_DISABLED
String FontPlatformData::description() const
{
return String();
Expand Down

0 comments on commit 4350c03

Please sign in to comment.