亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? render_block.h

?? It is WEB browser core module with source code. Very good!
?? H
?? 第 1 頁 / 共 2 頁
字號:
/*
 * This file is part of the render object implementation for KHTML.
 *
 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
 * Copyright (C) 2003 Apple Computer, Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public License
 * along with this library; see the file COPYING.LIB.  If not, write to
 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 */

#ifndef RENDER_BLOCK_H
#define RENDER_BLOCK_H

#include <qptrlist.h>

#include "render_flow.h"

typedef enum {
    CursorCaret,
    DragCaret,
} CaretType;

#ifdef __WINSCW__
#pragma enumsalwaysint off
#endif

namespace DOM {
    class Position;
}

namespace khtml {

class RenderBlock : public RenderFlow
{
public:
    RenderBlock(DOM::NodeImpl* node);
    virtual ~RenderBlock();

    virtual const char *renderName() const;

    // These two functions are overridden for inline-block.
    virtual short lineHeight(bool b, bool isRootLineBox=false) const;
    virtual short baselinePosition(bool b, bool isRootLineBox=false) const;

    virtual bool isRenderBlock() const { return true; }
    virtual bool isBlockFlow() const { return (!isInline() || isReplaced()) && !isTable(); }
    virtual bool isInlineFlow() const { return isInline() && !isReplaced(); }
    virtual bool isInlineBlockOrInlineTable() const { return isInline() && isReplaced(); }

    virtual bool childrenInline() const { return m_childrenInline; }
    virtual void setChildrenInline(bool b) { m_childrenInline = b; }
    void makeChildrenNonInline(RenderObject* insertionPoint = 0);

    // The height (and width) of a block when you include overflow spillage out of the bottom
    // of the block (e.g., a <div style="height:25px"> that has a 100px tall image inside
    // it would have an overflow height of borderTop() + paddingTop() + 100px.
    virtual int overflowHeight(bool includeInterior=true) const;
    virtual int overflowWidth(bool includeInterior=true) const;
    virtual int overflowLeft(bool includeInterior=true) const;
    virtual int overflowTop(bool includeInterior=true) const;
    virtual QRect overflowRect(bool includeInterior=true) const;
    virtual void setOverflowHeight(int h) { m_overflowHeight = h; }
    virtual void setOverflowWidth(int w) { m_overflowWidth = w; }

    virtual bool isSelfCollapsingBlock() const;
    virtual bool isTopMarginQuirk() const { return m_topMarginQuirk; }
    virtual bool isBottomMarginQuirk() const { return m_bottomMarginQuirk; }

    virtual int maxTopMargin(bool positive) const {
        if (positive)
            return m_maxTopPosMargin;
        else
            return m_maxTopNegMargin;
    }
    virtual int maxBottomMargin(bool positive) const {
        if (positive)
            return m_maxBottomPosMargin;
        else
            return m_maxBottomNegMargin;
    }

    void initMaxMarginValues() {
        if (m_marginTop >= 0)
            m_maxTopPosMargin = m_marginTop;
        else
            m_maxTopNegMargin = -m_marginTop;
        if (m_marginBottom >= 0)
            m_maxBottomPosMargin = m_marginBottom;
        else
            m_maxBottomNegMargin = -m_marginBottom;
    }

    virtual void addChildToFlow(RenderObject* newChild, RenderObject* beforeChild);
    virtual void removeChild(RenderObject *oldChild);

    virtual void repaintObjectsBeforeLayout();
    virtual void repaintFloatingDescendants();
    virtual void getAbsoluteRepaintRectIncludingFloats(QRect& bounds, QRect& fullBounds);

    virtual void setStyle(RenderStyle* _style);

    virtual void layout();
    virtual void layoutBlock(bool relayoutChildren);
    void layoutBlockChildren(bool relayoutChildren);
    QRect layoutInlineChildren(bool relayoutChildren);

    void layoutPositionedObjects( bool relayoutChildren );
    void insertPositionedObject(RenderObject *o);
    void removePositionedObject(RenderObject *o);

    // Called to lay out the legend for a fieldset.
    virtual RenderObject* layoutLegend(bool relayoutChildren) { return 0; };

    // the implementation of the following functions is in bidi.cpp
    void bidiReorderLine(const BidiIterator &start, const BidiIterator &end, BidiState &bidi );
    RootInlineBox* determineStartPosition(bool fullLayout, BidiIterator &start, BidiState &bidi);
    RootInlineBox* determineEndPosition(RootInlineBox* startBox, BidiIterator& cleanLineStart, int& yPos);
    bool matchedEndLine(const BidiIterator& start, const BidiIterator& endLineStart,
                        RootInlineBox*& endLine, int& endYPos);
    int skipWhitespace(BidiIterator &, BidiState &);
    BidiIterator findNextLineBreak(BidiIterator &start, BidiState &info );
    RootInlineBox* constructLine(const BidiIterator& start, const BidiIterator& end);
    InlineFlowBox* createLineBoxes(RenderObject* obj);
    void computeHorizontalPositionsForLine(RootInlineBox* lineBox, BidiState &bidi);
    void computeVerticalPositionsForLine(RootInlineBox* lineBox);
    void checkLinesForOverflow();
    void deleteEllipsisLineBoxes();
    void checkLinesForTextOverflow();
    // end bidi.cpp functions

    virtual void paint(PaintInfo& i, int tx, int ty);
    void paintObject(PaintInfo& i, int tx, int ty);
    void paintFloats(PaintInfo& i, int _tx, int _ty, bool paintSelection = false);
    void paintChildren(PaintInfo& i, int _tx, int _ty);
    void paintEllipsisBoxes(PaintInfo& i, int _tx, int _ty);
    void paintSelection(PaintInfo& i, int _tx, int _ty);
    void paintCaret(PaintInfo& i, CaretType);
#ifdef NOKIA_CHANGES
    virtual void getRenderersInRect(QPtrList<BoxInfo>& boxInfoList,int deltaX,int deltaY,const QRect& rect);
#endif

    void insertFloatingObject(RenderObject *o);
    void removeFloatingObject(RenderObject *o);

    // called from lineWidth, to position the floats added in the last line.
    void positionNewFloats();
    void clearFloats();
    int getClearDelta(RenderObject *child);
    virtual void markAllDescendantsWithFloatsForLayout(RenderObject* floatToRemove = 0);
    void markPositionedObjectsForLayout();

    virtual bool containsFloats() { return m_floatingObjects!=0; }
    virtual bool containsFloat(RenderObject* o);

    virtual bool hasOverhangingFloats() { return floatBottom() > m_height; }
    void addIntrudingFloats(RenderBlock* prev, int xoffset, int yoffset);
    void addOverhangingFloats(RenderBlock* child, int xoffset, int yoffset);

    int nearestFloatBottom(int height) const;
    int floatBottom() const;
    inline int leftBottom();
    inline int rightBottom();
    virtual QRect floatRect() const;

    virtual int lineWidth(int y) const;
    virtual int lowestPosition(bool includeOverflowInterior=true, bool includeSelf=true) const;
    virtual int rightmostPosition(bool includeOverflowInterior=true, bool includeSelf=true) const;
    virtual int leftmostPosition(bool includeOverflowInterior=true, bool includeSelf=true) const;

    int rightOffset() const;
    int rightRelOffset(int y, int fixedOffset, bool applyTextIndent = true,
                       int *heightRemaining = 0) const;
    int rightOffset(int y) const { return rightRelOffset(y, rightOffset(), true); }

    int leftOffset() const;
    int leftRelOffset(int y, int fixedOffset, bool applyTextIndent = true,
                      int *heightRemaining = 0) const;
    int leftOffset(int y) const { return leftRelOffset(y, leftOffset(), true); }

    virtual bool nodeAtPoint(NodeInfo& info, int x, int y, int tx, int ty,
                             HitTestAction hitTestAction);

    bool isPointInScrollbar(int x, int y, int tx, int ty);

    virtual VisiblePosition positionForCoordinates(int x, int y);

    virtual void calcMinMaxWidth();
    void calcInlineMinMaxWidth();
    void calcBlockMinMaxWidth();

    virtual int getBaselineOfFirstLineBox() const;

    RootInlineBox* firstRootBox() { return static_cast<RootInlineBox*>(m_firstLineBox); }
    RootInlineBox* lastRootBox() { return static_cast<RootInlineBox*>(m_lastLineBox); }

    // Obtains the nearest enclosing block (including this block) that contributes a first-line style to our inline
    // children.
    virtual RenderBlock* firstLineBlock() const;
    virtual void updateFirstLetter();

    bool inRootBlockContext() const;

    void setHasMarkupTruncation(bool b=true) { m_hasMarkupTruncation = b; }
    bool hasMarkupTruncation() const { return m_hasMarkupTruncation; }

    virtual bool hasSelectedChildren() const { return m_selectionState != SelectionNone; }
    virtual SelectionState selectionState() const { return m_selectionState; }
    virtual void setSelectionState(SelectionState s);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国内精品久久久久影院色| 蜜臀av性久久久久蜜臀aⅴ流畅| 欧美日韩国产综合久久| 国产在线不卡一区| 亚洲一区成人在线| 国产精品丝袜黑色高跟| 日韩欧美www| 欧美性大战久久久久久久蜜臀| 国产伦精品一区二区三区免费 | 日韩色在线观看| 91免费视频观看| 国产成人av电影| 久久99久国产精品黄毛片色诱| 亚洲一级片在线观看| 国产精品国产精品国产专区不蜜| 国产日产欧美一区二区视频| 91精品国产综合久久久蜜臀图片 | 亚洲日本在线看| 久久精品网站免费观看| 欧美成人三级在线| 91麻豆精品国产91久久久久| 91极品视觉盛宴| 92国产精品观看| 风间由美一区二区av101| 国产精品1区二区.| 国产一区在线观看麻豆| 美女网站一区二区| 日韩精品一二三四| 午夜精品久久久久久久久久久| 一区二区三区在线观看网站| 国产精品视频你懂的| 久久久.com| 国产欧美精品一区二区色综合朱莉| 制服丝袜成人动漫| 欧美高清性hdvideosex| 精品视频在线免费看| 欧美撒尿777hd撒尿| 欧美在线一区二区三区| 91成人免费在线视频| 欧美优质美女网站| 欧美亚洲一区三区| 欧美日韩国产另类不卡| 欧美群妇大交群的观看方式| 91精品一区二区三区在线观看| 欧美久久久久久久久久| 欧美一级艳片视频免费观看| 欧美一区二区三区四区高清| 日韩一卡二卡三卡| 欧美精品一区二区三区视频| 久久亚区不卡日本| 国产欧美久久久精品影院| 国产精品系列在线| 最新不卡av在线| 一区二区在线观看免费| 天堂av在线一区| 国内外精品视频| 风间由美一区二区三区在线观看 | 欧美草草影院在线视频| 国产三级欧美三级日产三级99 | 国产精品久久看| 亚洲猫色日本管| 亚洲福利一区二区| 久久99热这里只有精品| 国产成人精品aa毛片| 91免费国产视频网站| 欧美午夜精品免费| 日韩欧美亚洲一区二区| 欧美经典三级视频一区二区三区| 综合久久久久久| 亚洲国产一区二区三区青草影视| 美国欧美日韩国产在线播放| 成人影视亚洲图片在线| 91久久奴性调教| 日韩视频免费观看高清完整版在线观看 | 国产日韩v精品一区二区| 亚洲视频免费在线| 日韩中文字幕麻豆| 丁香亚洲综合激情啪啪综合| 欧美午夜影院一区| 国产亚洲短视频| 一区二区高清免费观看影视大全| 久久国产乱子精品免费女| av不卡免费在线观看| 欧美一区二区在线免费观看| 国产精品国产三级国产aⅴ入口| 亚洲国产日韩a在线播放| 国产精品91xxx| 欧美日韩国产小视频在线观看| 久久久精品综合| 亚洲大片一区二区三区| 国产成人av电影在线| 91精品国产91久久久久久最新毛片| 国产欧美一区二区在线| 日韩vs国产vs欧美| 色久综合一二码| 久久久久久久久久久久久久久99 | 99久久精品久久久久久清纯| 欧美一区午夜视频在线观看| 亚洲乱码精品一二三四区日韩在线| 久久黄色级2电影| 91黄色免费版| 中文字幕av在线一区二区三区| 丝袜诱惑制服诱惑色一区在线观看| 99久久精品国产网站| 亚洲精品在线免费观看视频| 午夜精品aaa| 色婷婷av一区二区| 亚洲国产精品激情在线观看 | 91视频com| 欧美激情一区二区| 另类小说综合欧美亚洲| 欧美日本一区二区在线观看| 亚洲人一二三区| 成人做爰69片免费看网站| 精品国产凹凸成av人导航| 午夜精品爽啪视频| 日本高清不卡在线观看| 国产精品乱人伦| 国产91精品在线观看| 精品少妇一区二区三区在线播放| 午夜精品久久久久久久99樱桃| 色婷婷亚洲婷婷| 亚洲色图欧美在线| 成人动漫视频在线| 国产精品毛片高清在线完整版| 国产毛片精品国产一区二区三区| 日韩精品一区二| 美女在线一区二区| 欧美一区二区视频在线观看2020| 亚洲18色成人| 欧美日韩大陆在线| 午夜天堂影视香蕉久久| 欧美男女性生活在线直播观看| 亚洲成人一区二区在线观看| 精品视频一区二区三区免费| 亚洲第一激情av| 91精品麻豆日日躁夜夜躁| 首页综合国产亚洲丝袜| 日韩亚洲欧美高清| 国产在线麻豆精品观看| 久久只精品国产| 国产乱码精品一品二品| 中国色在线观看另类| 波多野结衣中文字幕一区| 国产精品久久久久久亚洲毛片 | 日韩一区二区三区视频在线| 美国毛片一区二区三区| 精品少妇一区二区三区在线视频| 激情图片小说一区| 中文字幕不卡一区| 色噜噜狠狠成人网p站| 亚洲国产欧美日韩另类综合| 91精品国产91久久久久久一区二区| 日本欧美一区二区三区| 精品av久久707| gogogo免费视频观看亚洲一| 亚洲精品一二三| 3d成人h动漫网站入口| 国产中文字幕一区| 亚洲视频电影在线| 91精品国产综合久久福利| 国产在线精品一区二区夜色 | 337p日本欧洲亚洲大胆精品| 国产超碰在线一区| 亚洲一区二区五区| 精品日产卡一卡二卡麻豆| 成人短视频下载| 婷婷国产在线综合| 国产亚洲欧美激情| 一本色道a无线码一区v| 日韩福利视频导航| 日本一区二区视频在线| 日本丰满少妇一区二区三区| 精品一区二区三区香蕉蜜桃 | 久久久久久久久久久久久久久99| 91香蕉国产在线观看软件| 免费在线观看一区| 中文字幕一区二区三区四区不卡 | 国产女主播一区| 欧美日韩一区国产| 国产剧情一区二区| 亚洲午夜激情av| 国产女人18水真多18精品一级做| 欧美午夜精品一区二区蜜桃| 国产麻豆成人精品| 性做久久久久久| 亚洲欧洲美洲综合色网| 日韩三级av在线播放| 99re亚洲国产精品| 国产在线精品一区二区夜色| 亚洲国产美女搞黄色| 中文字幕精品在线不卡| 日韩一区二区在线看| 日本高清不卡aⅴ免费网站| 国产一区二区三区久久久| 天堂蜜桃91精品| 成人免费在线视频| 久久嫩草精品久久久精品| 欧美日韩日日夜夜| 成人ar影院免费观看视频|