Minor refactoring in highestEditableRoot to avoid a redundant call to rendererIsEditable
Created attachment 208236 [details] Patch
Comment on attachment 208236 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=208236&action=review > Source/WebCore/editing/htmlediting.cpp:123 > + if (highestRoot->hasTagName(bodyTag)) > + return highestRoot; > + > + node = highestRoot->parentNode(); Please don't repeat the code. We can rearrange the code inside the loop instead.
Landed in https://chromiumcodereview.appspot.com/22288004.
Created attachment 208971 [details] Cleanup
Comment on attachment 208971 [details] Cleanup View in context: https://bugs.webkit.org/attachment.cgi?id=208971&action=review > Source/WebCore/WebCore.exp.in:-2255 > -__ZNK7WebCore4Node18rendererIsEditableENS0_13EditableLevelE Apparently this is still used. Reverting that.
Comment on attachment 208971 [details] Cleanup View in context: https://bugs.webkit.org/attachment.cgi?id=208971&action=review > Source/WebCore/WebCore.exp.in:-2255 > -__ZNK7WebCore4Node18rendererIsEditableENS0_13EditableLevelE You can't do that. > Source/WebCore/editing/htmlediting.cpp:116 > Node* highestRoot = editableRootForPosition(position, editableType); Rename to highestEditableRoot? rootEditableNode?
Committed r154212: <http://trac.webkit.org/changeset/154212>