diff --git a/accessible/src/mac/mozTextAccessible.mm b/accessible/src/mac/mozTextAccessible.mm index f9decfe6ab0..8798d3a9594 100644 --- a/accessible/src/mac/mozTextAccessible.mm +++ b/accessible/src/mac/mozTextAccessible.mm @@ -139,7 +139,7 @@ extern const NSString *kTopLevelUIElementAttribute; // NSAccessibilityTopLevel return YES; if (mGeckoEditableTextAccessible) - return (mGeckoEditableTextAccessible->State() & states::READONLY) == 0; + return (mGeckoAccessible->State() & states::READONLY) == 0; return NO; diff --git a/accessible/src/mac/nsAccessibleWrap.h b/accessible/src/mac/nsAccessibleWrap.h index 37acf26cb82..6c08ba0e898 100644 --- a/accessible/src/mac/nsAccessibleWrap.h +++ b/accessible/src/mac/nsAccessibleWrap.h @@ -45,6 +45,7 @@ #include "nsAccessible.h" #include "nsAccUtils.h" +#include "States.h" #include "nsCOMPtr.h" #include "nsRect.h"