mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 16:58:38 +09:00
Issue #2488 - Part 3: Remove the StyleSetHandle smart pointer class
This commit is contained in:
parent
4d7bdedade
commit
4bf43b8fb4
58 changed files with 155 additions and 589 deletions
|
|
@ -6,8 +6,6 @@
|
|||
#include "ActiveElementManager.h"
|
||||
#include "mozilla/EventStateManager.h"
|
||||
#include "mozilla/EventStates.h"
|
||||
#include "mozilla/StyleSetHandle.h"
|
||||
#include "mozilla/StyleSetHandleInlines.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "base/message_loop.h"
|
||||
#include "base/task.h"
|
||||
|
|
@ -166,7 +164,7 @@ ElementHasActiveStyle(dom::Element* aElement)
|
|||
if (!pc) {
|
||||
return false;
|
||||
}
|
||||
StyleSetHandle styleSet = pc->StyleSet();
|
||||
nsStyleSet* styleSet = pc->StyleSet();
|
||||
for (dom::Element* e = aElement; e; e = e->GetParentElement()) {
|
||||
if (styleSet->HasStateDependentStyle(e, NS_EVENT_STATE_ACTIVE)) {
|
||||
AEM_LOG("Element %p's style is dependent on the active state\n", e);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue