Lines Matching full:frame
30 #include "Frame.h"
122 static WTF::RefCountedLeakCounter frameCounter("Frame");
125 static inline Frame* parentFromOwnerElement(HTMLFrameOwnerElement* ownerElement)
129 return ownerElement->document()->frame();
132 Frame::Frame(Page* page, HTMLFrameOwnerElement* ownerElement, FrameLoaderClient* frameLoaderClient)
144 , m_lifeSupportTimer(this, &Frame::lifeSupportTimerFired)
154 Frame* parent = parentFromOwnerElement(ownerElement);
192 Frame::~Frame()
223 void Frame::init()
228 FrameLoader* Frame::loader() const
233 RedirectScheduler* Frame::redirectScheduler() const
238 FrameView* Frame::view() const
243 void Frame::setView(PassRefPtr<FrameView> view)
270 ScriptController* Frame::script()
275 Document* Frame::document() const
280 void Frame::setDocument(PassRefPtr<Document> newDoc)
299 void Frame::sendOrientationChangeEvent(int orientation)
307 Settings* Frame::settings() const
312 String Frame::selectedText() const
317 IntRect Frame::firstRectForRange(Range* range) const
357 SelectionController* Frame::selection() const
362 Editor* Frame::editor() const
367 TextGranularity Frame::selectionGranularity() const
372 void Frame::setSelectionGranularity(TextGranularity granularity)
377 SelectionController* Frame::dragCaretController() const
383 AnimationController* Frame::animation() const
422 String Frame::searchForLabelsAboveCell(RegularExpression* regExp, HTMLTableCellElement* cell, size_t* resultDistanceFromStartOfCell)
459 String Frame::searchForLabelsBeforeElement(const Vector<String>& labels, Element* element, size_t* resultDistance, bool* resultIsInCellAbove)
562 String Frame::matchLabelsAgainstElement(const Vector<String>& labels, Element* element)
575 const VisibleSelection& Frame::mark() const
580 void Frame::setMark(const VisibleSelection& s)
590 void Frame::notifyRendererOfSelectionChange(bool userTriggered)
602 // Frame and FrameView, a <frame>, <iframe>, or <object>.
614 void Frame::setFocusedNodeIfNeeded()
635 // We don't want to set focus on a subframe when selecting in a parent frame,
653 void Frame::paintDragCaret(GraphicsContext* p, int tx, int ty, const IntRect& clipRect) const
658 if (dragCaretController->selection().start().node()->document()->frame() == this)
663 float Frame::zoomFactor() const
668 bool Frame::isZoomFactorTextOnly() const
673 bool Frame::shouldApplyTextZoom() const
684 bool Frame::shouldApplyPageZoom() const
695 void Frame::setZoomFactor(float percent, bool isTextOnly)
726 for (Frame* child = tree()->firstChild(); child; child = child->tree()->nextSibling())
733 void Frame::setPrinting(bool printing, float minPageWidth, float maxPageWidth, bool adjustViewSize)
740 for (Frame* child = tree()->firstChild(); child; child = child->tree()->nextSibling())
744 void Frame::setJSStatusBarText(const String& text)
746 ASSERT(m_doc); // Client calls shouldn't be made when the frame is in inconsistent state.
752 void Frame::setJSDefaultStatusBarText(const String& text)
754 ASSERT(m_doc); // Client calls shouldn't be made when the frame is in inconsistent state.
760 String Frame::jsStatusBarText() const
765 String Frame::jsDefaultStatusBarText() const
770 void Frame::setNeedsReapplyStyles()
772 // When the frame is not showing web content, it doesn't make sense to apply styles.
789 bool Frame::needsReapplyStyles() const
794 void Frame::reapplyStyles()
809 void Frame::injectUserScripts(UserScriptInjectionTime injectionTime)
823 void Frame::injectUserScriptsForWorld(DOMWrapperWorld* world, const UserScriptVector& userScripts, UserScriptInjectionTime injectionTime)
841 bool Frame::shouldChangeSelection(const VisibleSelection& newSelection) const
846 bool Frame::shouldChangeSelection(const VisibleSelection& oldSelection, const VisibleSelection& newSelection, EAffinity affinity, bool stillSelecting) const
852 bool Frame::shouldDeleteSelection(const VisibleSelection& selection) const
857 bool Frame::isContentEditable() const
867 void Frame::setUseSecureKeyboardEntry(bool enable)
895 void Frame::updateSecureKeyboardEntryIfActive()
901 CSSMutableStyleDeclaration *Frame::typingStyle() const
906 void Frame::setTypingStyle(CSSMutableStyleDeclaration *style)
911 void Frame::clearTypingStyle()
916 void Frame::computeAndSetTypingStyle(CSSStyleDeclaration *style, EditAction editingAction)
959 String Frame::selectionStartStylePropertyValue(int stylePropertyID) const
977 PassRefPtr<CSSComputedStyleDeclaration> Frame::selectionComputedStyle(Node*& nodeToRemove) const
1022 void Frame::textFieldDidBeginEditing(Element* e)
1028 void Frame::textFieldDidEndEditing(Element* e)
1034 void Frame::textDidChangeInTextField(Element* e)
1040 bool Frame::doTextFieldCommandFromEvent(Element* e, KeyboardEvent* ke)
1048 void Frame::textWillBeDeletedInTextField(Element* input)
1054 void Frame::textDidChangeInTextArea(Element* e)
1060 void Frame::applyEditingStyleToBodyElement() const
1068 void Frame::removeEditingStyleFromBodyElement() const
1076 void Frame::applyEditingStyleToElement(Element* element) const
1093 void Frame::removeEditingStyleFromElement(Element*) const
1098 static HashSet<Frame*>& keepAliveSet()
1100 DEFINE_STATIC_LOCAL(HashSet<Frame*>, staticKeepAliveSet, ());
1105 void Frame::keepAlive()
1117 void Frame::cancelAllKeepAlive()
1119 HashSet<Frame*>::iterator end = keepAliveSet().end();
1120 for (HashSet<Frame*>::iterator it = keepAliveSet().begin(); it != end; ++it) {
1121 Frame* frame = *it;
1122 frame->m_lifeSupportTimer.stop();
1123 frame->deref();
1129 void Frame::lifeSupportTimerFired(Timer<Frame>*)
1137 void Frame::clearDOMWindow()
1146 RenderView* Frame::contentRenderer() const
1158 HTMLFrameOwnerElement* Frame::ownerElement() const
1163 RenderPart* Frame::ownerRenderer() const
1180 bool Frame::isDisconnected() const
1185 void Frame::setIsDisconnected(bool isDisconnected)
1190 bool Frame::excludeFromTextSearch() const
1195 void Frame::setExcludeFromTextSearch(bool exclude)
1201 FloatRect Frame::selectionBounds(bool clipToVisibleContent) const
1212 void Frame::selectionTextRects(Vector<FloatRect>& rects, SelectionRectRespectTransforms respectTransforms, bool clipToVisibleContent) const
1269 HTMLFormElement *Frame::currentForm() const
1289 void Frame::revealSelection(const ScrollAlignment& alignment, bool revealExtent)
1315 Frame* Frame::frameForWidget(const Widget* widget)
1321 return node->document()->frame();
1326 return static_cast<const FrameView*>(widget)->frame();
1329 void Frame::clearTimers(FrameView *view, Document *document)
1333 if (view->frame()) {
1334 view->frame()->animation()->suspendAnimations(document);
1335 view->frame()->eventHandler()->stopAutoscrollTimer();
1340 void Frame::clearTimers()
1345 RenderStyle *Frame::styleForSelectionStart(Node *&nodeToRemove) const
1379 void Frame::setSelectionFromNone()
1381 // Put a caret inside the body if the entire frame is editable (either the
1395 bool Frame::inViewSourceMode() const
1400 void Frame::setInViewSourceMode(bool mode)
1406 bool Frame::findString(const String& target, bool forward, bool caseFlag, bool wrapFlag, bool startInSelection)
1492 unsigned Frame::markAllMatchesForText(const String& target, bool caseFlag, unsigned limit)
1549 bool Frame::markedTextMatchesAreHighlighted() const
1554 void Frame::setMarkedTextMatchesAreHighlighted(bool flag)
1563 FrameTree* Frame::tree() const
1568 void Frame::setDOMWindow(DOMWindow* domWindow)
1577 DOMWindow* Frame::domWindow() const
1580 m_domWindow = DOMWindow::create(const_cast<Frame*>(this));
1585 void Frame::clearFormerDOMWindow(DOMWindow* window)
1590 Page* Frame::page() const
1595 void Frame::detachFromPage()
1600 EventHandler* Frame::eventHandler() const
1605 void Frame::pageDestroyed()
1607 if (Frame* parent = tree()->parent())
1622 void Frame::disconnectOwnerElement()
1634 String Frame::documentTypeString() const
1642 void Frame::focusWindow()
1651 // different frame tries to focus this frame through javascript.
1660 void Frame::unfocusWindow()
1670 bool Frame::shouldClose()
1696 void Frame::scheduleClose()
1706 void Frame::respondToChangedSelection(const VisibleSelection& oldSelection, bool closeTyping)
1753 VisiblePosition Frame::visiblePositionForPoint(const IntPoint& framePoint)
1768 Document* Frame::documentAtPoint(const IntPoint& point)
1781 void Frame::createView(const IntSize& viewportSize,