Closed Bug 1586008 Opened 4 months ago Closed 4 months ago

Factor out IsNodeInEditableRegion

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement
Not set

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: fredw, Assigned: fredw)

References

Details

Attachments

(1 file)

This is used for HTML and SVG

dom/html/HTMLAnchorElement.cpp
static bool IsNodeInEditableRegion(nsINode* aNode) {
dom/svg/SVGAElement.cpp
static bool IsNodeInEditableRegion(nsINode* aNode) {

and for MathML after bug 1571487. Let's just use a common function in nsContentUtils

Component: DOM: Events → DOM: Core & HTML
Type: defect → enhancement

Pushed by btara@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/da702db18a1e
Factor out IsNodeInEditableRegion. r=bzbarsky

Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
Assignee: nobody → fred.wang
You need to log in before you can comment on or make changes to this bug.