void GraphicsContext::setTextDrawingMode(TextDrawingModeFlags mode) { m_state.textDrawingMode = mode; if (paintingDisabled()) return; setPlatformTextDrawingMode(mode); }
void GraphicsContext::setTextDrawingMode(int mode) { m_common->state.textDrawingMode = mode; if (paintingDisabled()) return; setPlatformTextDrawingMode(mode); }
void GraphicsContext::setTextDrawingMode(TextDrawingModeFlags mode) { m_state.textDrawingMode = mode; if (paintingDisabled()) return; if (isRecording()) { m_displayListRecorder->updateState(m_state, GraphicsContextState::TextDrawingModeChange); return; } setPlatformTextDrawingMode(mode); }
void GraphicsContext::applyState(const GraphicsContextState& state) { setPlatformShadow(state.shadowOffset, state.shadowBlur, state.shadowColor); setPlatformStrokeThickness(state.strokeThickness); setPlatformTextDrawingMode(state.textDrawingMode); setPlatformStrokeColor(state.strokeColor); setPlatformFillColor(state.fillColor); setPlatformStrokeStyle(state.strokeStyle); setPlatformAlpha(state.alpha); setPlatformCompositeOperation(state.compositeOperator, state.blendMode); setPlatformShouldAntialias(state.shouldAntialias); setPlatformShouldSmoothFonts(state.shouldSmoothFonts); }