Bug 968281 - pull helper function out of HasAttributeDependentStyle; r=bz