LayoutListMarker::LayoutListMarker(LayoutListItem* item) : LayoutBox(nullptr) , m_listItem(item) { setInline(true); setIsAtomicInlineLevel(true); }
RenderRubyRun::RenderRubyRun(Node* node) : RenderBlock(node) , m_beingDestroyed(false) { setReplaced(true); setInline(true); }
RenderView::RenderView(Document* document) : RenderBlockFlow(document) , m_frameView(document->view()) , m_selectionStart(0) , m_selectionEnd(0) , m_selectionStartPos(-1) , m_selectionEndPos(-1) , m_maximalOutlineSize(0) , m_pageLogicalHeight(0) , m_pageLogicalHeightChanged(false) , m_layoutState(0) , m_layoutStateDisableCount(0) , m_renderQuoteHead(0) , m_renderCounterCount(0) { // init RenderObject attributes setInline(false); m_minPreferredLogicalWidth = 0; m_maxPreferredLogicalWidth = 0; setPreferredLogicalWidthsDirty(MarkOnlyThis); setPositionState(AbsolutePosition); // to 0,0 :) }
void RenderSVGInline::updateFromStyle() { RenderInline::updateFromStyle(); // SVG text layout code expects us to be an inline-level element. setInline(true); }
RenderFrameSet::RenderFrameSet(HTMLFrameSetElement& frameSet, Ref<RenderStyle>&& style) : RenderBox(frameSet, WTF::move(style), 0) , m_isResizing(false) , m_isChildResizing(false) { setInline(false); }
RenderFrameSet::RenderFrameSet(HTMLFrameSetElement* frameSet) : RenderBox(frameSet) , m_isResizing(false) , m_isChildResizing(false) { setInline(false); }
RenderView::RenderView(Node* node, FrameView* view) : RenderBlock(node) , m_frameView(view) , m_selectionStart(0) , m_selectionEnd(0) , m_selectionStartPos(-1) , m_selectionEndPos(-1) , m_printImages(true) , m_maximalOutlineSize(0) , m_bestTruncatedAt(0) , m_truncatorWidth(0) , m_minimumColumnHeight(0) , m_forcedPageBreak(false) , m_layoutState(0) , m_layoutStateDisableCount(0) { // Clear our anonymous bit, set because RenderObject assumes // any renderer with document as the node is anonymous. setIsAnonymous(false); // init RenderObject attributes setInline(false); m_minPrefWidth = 0; m_maxPrefWidth = 0; setPrefWidthsDirty(true, false); setPositioned(true); // to 0,0 :) }
RenderView::RenderView(Document& document) : RenderBlockFlow(document) , m_frameView(*document.view()) , m_selectionStart(0) , m_selectionEnd(0) , m_selectionStartPos(-1) , m_selectionEndPos(-1) , m_maximalOutlineSize(0) , m_pageLogicalHeight(0) , m_pageLogicalHeightChanged(false) , m_layoutState(nullptr) , m_layoutStateDisableCount(0) , m_renderQuoteHead(0) , m_renderCounterCount(0) , m_selectionWasCaret(false) #if ENABLE(CSS_FILTERS) , m_hasSoftwareFilters(false) #endif { setIsRenderView(); // FIXME: We should find a way to enforce this at compile time. ASSERT(document.view()); // init RenderObject attributes setInline(false); m_minPreferredLogicalWidth = 0; m_maxPreferredLogicalWidth = 0; setPreferredLogicalWidthsDirty(true, MarkOnlyThis); setPositionState(AbsolutePosition); // to 0,0 :) }
WPaintedWidget::WPaintedWidget(WContainerWidget *parent) : WInteractWidget(parent), preferredMethod_(HtmlCanvas), painter_(0), needRepaint_(false), sizeChanged_(false), areaImageAdded_(false), repaintFlags_(0), areaImage_(0), renderWidth_(0), renderHeight_(0) { if (WApplication::instance()) { const WEnvironment& env = WApplication::instance()->environment(); if (env.agentIsOpera() && env.userAgent().find("Mac OS X") == std::string::npos) preferredMethod_ = InlineSvgVml; } setLayoutSizeAware(true); setJavaScriptMember(WT_RESIZE_JS, "function(self, w, h) {" """var u = $(self).find('canvas, img');" """if (w >= 0) " "" "u.width(w);" """if (h >= 0) " "" "u.height(h);" "}"); setInline(false); }
RenderView::RenderView(Node* node, FrameView* view) : RenderBlock(node) , m_frameView(view) , m_selectionStart(0) , m_selectionEnd(0) , m_selectionStartPos(-1) , m_selectionEndPos(-1) , m_maximalOutlineSize(0) , m_pageLogicalHeight(0) , m_pageLogicalHeightChanged(false) , m_layoutState(0) , m_layoutStateDisableCount(0) { // Clear our anonymous bit, set because RenderObject assumes // any renderer with document as the node is anonymous. setIsAnonymous(false); // init RenderObject attributes setInline(false); m_minPreferredLogicalWidth = 0; m_maxPreferredLogicalWidth = 0; setPreferredLogicalWidthsDirty(true, false); setPositioned(true); // to 0,0 :) }
WPaintedWidget::WPaintedWidget(WContainerWidget *parent) : WInteractWidget(parent), preferredMethod_(HtmlCanvas), painter_(0), needRepaint_(false), sizeChanged_(false), areaImageAdded_(false), repaintFlags_(0), areaImage_(0), renderWidth_(0), renderHeight_(0), repaintSlot_("function() {" "var o=" + this->objJsRef() + ";" "if(o){o.repaint();}" "}", this), jsObjects_(this->objJsRef()) { if (WApplication::instance()) { const WEnvironment& env = WApplication::instance()->environment(); if (env.agentIsOpera() && env.userAgent().find("Mac OS X") == std::string::npos) preferredMethod_ = InlineSvgVml; } setInline(false); }
RenderView::RenderView(Node* node, FrameView* view) : RenderBlock(node) , m_frameView(view) , m_selectionStart(0) , m_selectionEnd(0) , m_selectionStartPos(-1) , m_selectionEndPos(-1) , m_printImages(true) , m_maximalOutlineSize(0) , m_layoutState(0) , m_layoutStateDisableCount(0) { // Clear our anonymous bit, set because RenderObject assumes // any renderer with document as the node is anonymous. setIsAnonymous(false); // init RenderObject attributes setInline(false); m_minPrefWidth = 0; m_maxPrefWidth = 0; setPrefWidthsDirty(true, false); setPositioned(true); // to 0,0 :) // Create a new root layer for our layer hierarchy. m_layer = new (node->document()->renderArena()) RenderLayer(this); setHasLayer(true); }
void RenderInline::styleDidChange(RenderStyle::Diff diff, const RenderStyle* oldStyle) { RenderFlow::styleDidChange(diff, oldStyle); setInline(true); setHasReflection(false); // Ensure that all of the split inlines pick up the new style. We // only do this if we're an inline, since we don't want to propagate // a block's style to the other inlines. // e.g., <font>foo <h4>goo</h4> moo</font>. The <font> inlines before // and after the block share the same style, but the block doesn't // need to pass its style on to anyone else. RenderFlow* currCont = continuation(); while (currCont) { if (currCont->isInline()) { RenderFlow* nextCont = currCont->continuation(); currCont->setContinuation(0); currCont->setStyle(style()); currCont->setContinuation(nextCont); } currCont = currCont->continuation(); } m_lineHeight = -1; // Update pseudos for :before and :after now. if (!isAnonymous()) { updateBeforeAfterContent(RenderStyle::BEFORE); updateBeforeAfterContent(RenderStyle::AFTER); } }
WIconPair::WIconPair(const std::string icon1URI, const std::string icon2URI, bool clickIsSwitch, WContainerWidget *parent) : WCompositeWidget(parent), impl_(new WContainerWidget()), icon1_(new WImage(icon1URI, impl_)), icon2_(new WImage(icon2URI, impl_)), icon1Clicked(icon1_->clicked), icon2Clicked(icon2_->clicked) { setImplementation(impl_); implementStateless(&WIconPair::showIcon1, &WIconPair::undoShowIcon1); implementStateless(&WIconPair::showIcon2, &WIconPair::undoShowIcon2); setInline(true); icon2_->hide(); if (clickIsSwitch) { icon1_->clicked.connect(SLOT(icon1_, WImage::hide)); icon1_->clicked.connect(SLOT(icon2_, WImage::show)); icon2_->clicked.connect(SLOT(icon2_, WImage::hide)); icon2_->clicked.connect(SLOT(icon1_, WImage::show)); decorationStyle().setCursor(WCssDecorationStyle::Pointer); } }
RenderRubyBase::RenderRubyBase(Document& document, Ref<RenderStyle>&& style) : RenderBlockFlow(document, WTF::move(style)) , m_initialOffset(0) , m_isAfterExpansion(true) { setInline(false); }
WTable::WTable(WContainerWidget *parent) : WInteractWidget(parent), cellPadding_(0), gridChanged_(false), paddingChanged_(false) { setInline(false); setIgnoreChildRemoves(true); }
WLineEdit::WLineEdit(WContainerWidget *parent) : WFormWidget(parent), textSize_(10), maxLength_(-1), echoMode_(Normal) { setInline(true); setFormObject(true); }
WTemplate::WTemplate(WContainerWidget *parent) : WInteractWidget(parent), previouslyRendered_(0), newlyRendered_(0), encodeInternalPaths_(false), changed_(false) { setInline(false); }
WAnchor::WAnchor(WContainerWidget *parent) : WContainerWidget(parent), text_(0), image_(0), target_(TargetSelf), changeInternalPathJS_(0) { setInline(true); }
void RenderScrollbarPart::styleDidChange(StyleDifference diff, const RenderStyle* oldStyle) { RenderBlock::styleDidChange(diff, oldStyle); setInline(false); clearPositionedState(); setFloating(false); setHasOverflowClip(false); if (oldStyle && m_scrollbar && m_part != NoPart && diff >= StyleDifferenceRepaint) m_scrollbar->theme()->invalidatePart(*m_scrollbar, m_part); }
WLineEdit::WLineEdit(const WT_USTRING& text, WContainerWidget *parent) : WFormWidget(parent), content_(text), textSize_(10), maxLength_(-1), echoMode_(Normal) { setInline(true); setFormObject(true); }
WTemplate::WTemplate(const WString& text, WContainerWidget *parent) : WInteractWidget(parent), previouslyRendered_(0), newlyRendered_(0), encodeInternalPaths_(false), changed_(false) { setInline(false); setTemplateText(text); }
WAnchor::WAnchor(const std::string& ref, WContainerWidget *parent) : WContainerWidget(parent), link_(WLink::Url, ref), text_(0), image_(0), target_(TargetSelf), changeInternalPathJS_(0) { setInline(true); }
LayoutPart::LayoutPart(Element* element) : LayoutReplaced(element) // Reference counting is used to prevent the part from being destroyed // while inside the Widget code, which might not be able to handle that. , m_refCount(1) { ASSERT(element); frameView()->addPart(this); setInline(false); }
void RenderBoxModelObject::updateFromStyle() { RenderLayerModelObject::updateFromStyle(); RenderStyle* styleToUse = style(); setHasBoxDecorationBackground(calculateHasBoxDecorations()); setInline(styleToUse->isDisplayInlineType()); setPositionState(styleToUse->position()); setHorizontalWritingMode(styleToUse->isHorizontalWritingMode()); }
WComboBox::WComboBox(WContainerWidget *parent) : WFormWidget(parent), currentIndex_(-1), itemsChanged_(false), selectionChanged_(false), currentlyConnected_(false) { setInline(true); setFormObject(true); }
WTable::WTable(WContainerWidget *parent) : WInteractWidget(parent), rowsChanged_(0), rowsAdded_(0), headerRowCount_(0), headerColumnCount_(0) { setInline(false); setIgnoreChildRemoves(true); }
WCartesianChart::IconWidget::IconWidget(WCartesianChart *chart, int index, WContainerWidget *parent) : WPaintedWidget(parent), chart_(chart), index_(index) { setInline(true); resize(20, 20); }
Widget::Widget(WContainerWidget *parent) : WWebWidget(parent) { setInline(false); initExt(); // because the stub uses display: none, while Widget uses Ext-based widget // hiding showing in an always visible container. setLoadLaterWhenInvisible(false); }
WTextArea::WTextArea(WContainerWidget *parent) : WFormWidget(parent), cols_(20), rows_(5), contentChanged_(false), attributesChanged_(false) { setInline(true); setFormObject(true); }