本文整理汇总了C++中HTMLTableCellElement::rowSpan方法的典型用法代码示例。如果您正苦于以下问题:C++ HTMLTableCellElement::rowSpan方法的具体用法?C++ HTMLTableCellElement::rowSpan怎么用?C++ HTMLTableCellElement::rowSpan使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTMLTableCellElement
的用法示例。
在下文中一共展示了HTMLTableCellElement::rowSpan方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: jsHTMLTableCellElementRowSpan
JSValue jsHTMLTableCellElementRowSpan(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl());
return jsNumber(exec, imp->rowSpan());
}
示例2: rowSpanAttrGetter
static v8::Handle<v8::Value> rowSpanAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
INC_STATS("DOM.HTMLTableCellElement.rowSpan._get");
HTMLTableCellElement* imp = V8HTMLTableCellElement::toNative(info.Holder());
if (!R_check(imp)) return v8::Handle<v8::Value>(v8::Undefined());
return v8::Integer::New(imp->rowSpan());
}
示例3: jsHTMLTableCellElementRowSpan
JSValue jsHTMLTableCellElementRowSpan(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl());
JSValue result = jsNumber(exec, imp->rowSpan());
return result;
}
示例4: updateFromElement
void RenderTableCell::updateFromElement()
{
Node* n = node();
if (n && (n->hasTagName(tdTag) || n->hasTagName(thTag))) {
HTMLTableCellElement* tc = static_cast<HTMLTableCellElement*>(n);
int oldRSpan = m_rowSpan;
int oldCSpan = m_columnSpan;
m_columnSpan = tc->colSpan();
m_rowSpan = tc->rowSpan();
if ((oldRSpan != m_rowSpan || oldCSpan != m_columnSpan) && style() && parent()) {
setNeedsLayoutAndPrefWidthsRecalc();
if (section())
section()->setNeedsCellRecalc();
}
}
}