Unreviewed, update r243884 to use macros in Compiler.h instead.
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Apr 2019 20:34:08 +0000 (20:34 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Apr 2019 20:34:08 +0000 (20:34 +0000)
* platform/ios/LegacyTileGrid.mm:
(WebCore::LegacyTileGrid::dropDistantTiles):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243895 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/ios/LegacyTileGrid.mm

index 0fe93bb..889d12f 100644 (file)
@@ -1,3 +1,10 @@
+2019-04-04  Chris Dumez  <cdumez@apple.com>
+
+        Unreviewed, update r243884 to use macros in Compiler.h instead.
+
+        * platform/ios/LegacyTileGrid.mm:
+        (WebCore::LegacyTileGrid::dropDistantTiles):
+
 2019-04-04  Chris Fleizach  <cfleizach@apple.com>
 
         AX: Crash under WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored()
index 2a15f90..890bc0f 100644 (file)
@@ -130,14 +130,13 @@ bool LegacyTileGrid::dropDistantTiles(unsigned tilesNeeded, double shortestDista
         if (distance <= shortestDistance)
             continue;
         toRemove.append(std::make_pair(distance, index));
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+        ALLOW_DEPRECATED_DECLARATIONS_BEGIN
         std::push_heap(toRemove.begin(), toRemove.end(), std::ptr_fun(isFartherAway<TileIndex>));
         if (toRemove.size() > tilesToRemoveCount) {
             std::pop_heap(toRemove.begin(), toRemove.end(), std::ptr_fun(isFartherAway<TileIndex>));
-#pragma clang diagnostic pop
             toRemove.removeLast();
         }
+        ALLOW_DEPRECATED_DECLARATIONS_END
     }
     size_t removeCount = toRemove.size();
     for (size_t n = 0; n < removeCount; ++n)