Since MidpointState is a class, it should behave like a class
[WebKit-https.git] / Source / WebCore / rendering / InlineIterator.h
index b5f2a1e946f208e558c789322c88bee278d1291c..198cf5ce28bd12b0cb149e315c590085efdca9bd 100644 (file)
@@ -497,9 +497,9 @@ public:
         // For now, if we enter an isolate between midpoints, we increment our current midpoint or else
         // we'll leave the isolate and ignore the content that follows.
         MidpointState<InlineIterator>& midpointState = resolver.midpointState();
-        if (midpointState.betweenMidpoints && midpointState.midpoints[midpointState.currentMidpoint].renderer() == &obj) {
-            midpointState.betweenMidpoints = false;
-            ++midpointState.currentMidpoint;
+        if (midpointState.betweenMidpoints() && midpointState.midpoints()[midpointState.currentMidpoint()].renderer() == &obj) {
+            midpointState.setBetweenMidpoints(false);
+            midpointState.incrementCurrentMidpoint();
         }
     }