Home | History | Annotate | Download | only in page

Lines Matching refs:Frame

30 #include "Frame.h"
123 static WTF::RefCountedLeakCounter frameCounter("Frame");
126 static inline Frame* parentFromOwnerElement(HTMLFrameOwnerElement* ownerElement)
130 return ownerElement->document()->frame();
133 static inline float parentPageZoomFactor(Frame* frame)
135 Frame* parent = frame->tree()->parent();
141 static inline float parentTextZoomFactor(Frame* frame)
143 Frame* parent = frame->tree()->parent();
149 inline Frame::Frame(Page* page, HTMLFrameOwnerElement* ownerElement, FrameLoaderClient* frameLoaderClient)
160 , m_lifeSupportTimer(this, &Frame::lifeSupportTimerFired)
192 // Top level frame only for now.
199 Frame*& contentFrameSlot = ownerElement->m_contentFrame;
209 PassRefPtr<Frame> Frame::create(Page* page, HTMLFrameOwnerElement* ownerElement, FrameLoaderClient* client)
211 RefPtr<Frame> frame = adoptRef(new Frame(page, ownerElement, client));
213 page->setMainFrame(frame);
214 return frame.release();
217 Frame::~Frame()
252 void Frame::addDestructionObserver(FrameDestructionObserver* observer)
257 void Frame::removeDestructionObserver(FrameDestructionObserver* observer)
262 void Frame::setView(PassRefPtr<FrameView> view)
296 void Frame::setDocument(PassRefPtr<Document> newDoc)
298 ASSERT(!newDoc || newDoc->frame());
322 void Frame::sendOrientationChangeEvent(int orientation)
330 Settings* Frame::settings() const
369 String Frame::searchForLabelsAboveCell(RegularExpression* regExp, HTMLTableCellElement* cell, size_t* resultDistanceFromStartOfCell)
396 String Frame::searchForLabelsBeforeElement(const Vector<String>& labels, Element* element, size_t* resultDistance, bool* resultIsInCellAbove)
499 String Frame::matchLabelsAgainstElement(const Vector<String>& labels, Element* element)
512 void Frame::setPrinting(bool printing, const FloatSize& pageSize, float maximumShrinkRatio, AdjustViewSizeOrNot shouldAdjustViewSize)
521 for (Frame* child = tree()->firstChild(); child; child = child->tree()->nextSibling())
525 void Frame::injectUserScripts(UserScriptInjectionTime injectionTime)
542 void Frame::injectUserScriptsForWorld(DOMWrapperWorld* world, const UserScriptVector& userScripts, UserScriptInjectionTime injectionTime)
564 static HashSet<Frame*>& keepAliveSet()
566 DEFINE_STATIC_LOCAL(HashSet<Frame*>, staticKeepAliveSet, ());
571 void Frame::keepAlive()
583 void Frame::cancelAllKeepAlive()
585 HashSet<Frame*>::iterator end = keepAliveSet().end();
586 for (HashSet<Frame*>::iterator it = keepAliveSet().begin(); it != end; ++it) {
587 Frame* frame = *it;
588 frame->m_lifeSupportTimer.stop();
589 frame->deref();
595 void Frame::lifeSupportTimerFired(Timer<Frame>*)
603 void Frame::clearDOMWindow()
612 RenderView* Frame::contentRenderer() const
624 RenderPart* Frame::ownerRenderer() const
641 Frame* Frame::frameForWidget(const Widget* widget)
647 return node->document()->frame();
652 return static_cast<const FrameView*>(widget)->frame();
655 void Frame::clearTimers(FrameView *view, Document *document)
659 if (view->frame()) {
660 view->frame()->animation()->suspendAnimationsForDocument(document);
661 view->frame()->eventHandler()->stopAutoscrollTimer();
666 void Frame::clearTimers()
671 void Frame::setDOMWindow(DOMWindow* domWindow)
680 DOMWindow* Frame::domWindow() const
683 m_domWindow = DOMWindow::create(const_cast<Frame*>(this));
688 void Frame::clearFormerDOMWindow(DOMWindow* window)
693 void Frame::pageDestroyed()
695 if (Frame* parent = tree()->parent())
715 void Frame::disconnectOwnerElement()
727 // The frame is moved in DOM, potentially to another page.
728 void Frame::transferChildFrameToNewDocument()
731 Frame* newParent = m_ownerElement->document()->frame();
761 // Update the frame tree.
764 // Avoid unnecessary calls to client and frame subtree if the frame ended
765 // up on the same page and under the same parent frame.
770 // Update resource tracking now that frame could be in a different page.
775 for (Frame* child = tree()->firstChild(); child; child = child->tree()->nextSibling())
780 String Frame::documentTypeString() const
788 VisiblePosition Frame::visiblePositionForPoint(const IntPoint& framePoint)
803 Document* Frame::documentAtPoint(const IntPoint& point)
816 PassRefPtr<Range> Frame::rangeForPoint(const IntPoint& framePoint)
841 void Frame::createView(const IntSize& viewportSize,
883 void Frame::setTiledBackingStoreEnabled(bool enabled)
896 void Frame::tiledBackingStorePaintBegin()
904 void Frame::tiledBackingStorePaint(GraphicsContext* context, const IntRect& rect)
911 void Frame::tiledBackingStorePaintEnd(const Vector<IntRect>& paintedArea)
921 IntRect Frame::tiledBackingStoreContentsRect()
928 IntRect Frame::tiledBackingStoreVisibleRect()
935 Color Frame::tiledBackingStoreBackgroundColor() const
943 String Frame::layerTreeAsText(bool showDebugInfo) const
957 void Frame::setPageZoomFactor(float factor)
962 void Frame::setTextZoomFactor(float factor)
967 void Frame::setPageAndTextZoomFactors(float pageZoomFactor, float textZoomFactor)
1007 for (Frame* child = tree()->firstChild(); child; child = child->tree()->nextSibling())
1017 void Frame::updateContentsScale(float scale)
1019 for (Frame* child = tree()->firstChild(); child; child = child->tree()->nextSibling())
1028 void Frame::scalePage(float scale, const IntPoint& origin)