move lastTextWasStroke flag into page context