| Index: sky/engine/core/page/Page.cpp
|
| diff --git a/sky/engine/core/page/Page.cpp b/sky/engine/core/page/Page.cpp
|
| index 72cf6e98b73fad3f02a390ded4c922439428ec13..7f49ebbf876a43a657a08721706c15a5b235a85e 100644
|
| --- a/sky/engine/core/page/Page.cpp
|
| +++ b/sky/engine/core/page/Page.cpp
|
| @@ -49,37 +49,6 @@ namespace blink {
|
|
|
| DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, pageCounter, ("Page"));
|
|
|
| -// static
|
| -HashSet<Page*>& Page::allPages()
|
| -{
|
| - DEFINE_STATIC_LOCAL(HashSet<Page*>, allPages, ());
|
| - return allPages;
|
| -}
|
| -
|
| -// static
|
| -HashSet<Page*>& Page::ordinaryPages()
|
| -{
|
| - DEFINE_STATIC_LOCAL(HashSet<Page*>, ordinaryPages, ());
|
| - return ordinaryPages;
|
| -}
|
| -
|
| -
|
| -void Page::networkStateChanged(bool online)
|
| -{
|
| - Vector<RefPtr<LocalFrame> > frames;
|
| -
|
| - // Get all the frames of all the pages in all the page groups
|
| - HashSet<Page*>::iterator end = allPages().end();
|
| - for (HashSet<Page*>::iterator it = allPages().begin(); it != end; ++it) {
|
| - LocalFrame* frame = (*it)->mainFrame();
|
| - frames.append(frame);
|
| - }
|
| -
|
| - AtomicString eventName = online ? EventTypeNames::online : EventTypeNames::offline;
|
| - for (unsigned i = 0; i < frames.size(); i++)
|
| - frames[i]->domWindow()->dispatchEvent(Event::create(eventName));
|
| -}
|
| -
|
| float deviceScaleFactor(LocalFrame* frame)
|
| {
|
| if (!frame)
|
| @@ -110,12 +79,10 @@ Page::Page(PageClients& pageClients, ServiceProvider& services)
|
| , m_isPainting(false)
|
| #endif
|
| , m_frameHost(FrameHost::create(*this, services))
|
| + , m_inspectorHost(0)
|
| {
|
| ASSERT(m_editorClient);
|
|
|
| - ASSERT(!allPages().contains(this));
|
| - allPages().add(this);
|
| -
|
| #ifndef NDEBUG
|
| pageCounter.increment();
|
| #endif
|
| @@ -127,12 +94,6 @@ Page::~Page()
|
| ASSERT(!m_mainFrame);
|
| }
|
|
|
| -void Page::makeOrdinary()
|
| -{
|
| - ASSERT(!ordinaryPages().contains(this));
|
| - ordinaryPages().add(this);
|
| -}
|
| -
|
| void Page::setMainFrame(LocalFrame* mainFrame)
|
| {
|
| // Should only be called during initialization or swaps between local and
|
| @@ -158,15 +119,6 @@ void Page::setOpenedByDOM()
|
| m_openedByDOM = true;
|
| }
|
|
|
| -void Page::scheduleForcedStyleRecalcForAllPages()
|
| -{
|
| - HashSet<Page*>::iterator end = allPages().end();
|
| - for (HashSet<Page*>::iterator it = allPages().begin(); it != end; ++it) {
|
| - LocalFrame* frame = (*it)->mainFrame();
|
| - frame->document()->setNeedsStyleRecalc(SubtreeStyleChange);
|
| - }
|
| -}
|
| -
|
| void Page::setNeedsRecalcStyleInAllFrames()
|
| {
|
| LocalFrame* frame = mainFrame();
|
| @@ -334,10 +286,6 @@ void Page::willBeDestroyed()
|
| mainFrame->detach();
|
| mainFrame->setView(nullptr);
|
|
|
| - allPages().remove(this);
|
| - if (ordinaryPages().contains(this))
|
| - ordinaryPages().remove(this);
|
| -
|
| #ifndef NDEBUG
|
| pageCounter.decrement();
|
| #endif
|
|
|