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

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

?? render_block.h

?? It is WEB browser core module with source code. Very good!
?? H
?? 第 1 頁 / 共 2 頁
字號:
    struct BlockSelectionInfo {
        RenderBlock* m_block;
        GapRects m_rects;
        SelectionState m_state;

        BlockSelectionInfo() { m_block = 0; m_state = SelectionNone; }
        BlockSelectionInfo(RenderBlock* b) {
            m_block = b;
            m_state = m_block->selectionState();
            m_rects = m_block->selectionGapRects();
        }

        GapRects rects() const { return m_rects; }
        SelectionState state() const { return m_state; }
        RenderBlock* block() const { return m_block; }
    };

    virtual QRect selectionRect() { return selectionGapRects(); }
    GapRects selectionGapRects();
    virtual bool shouldPaintSelectionGaps() const;
    bool isSelectionRoot() const;
    GapRects fillSelectionGaps(RenderBlock* rootBlock, int blockX, int blockY, int tx, int ty,
                               int& lastTop, int& lastLeft, int& lastRight, const PaintInfo* i = 0);
    GapRects fillInlineSelectionGaps(RenderBlock* rootBlock, int blockX, int blockY, int tx, int ty,
                                     int& lastTop, int& lastLeft, int& lastRight, const PaintInfo* i);
    GapRects fillBlockSelectionGaps(RenderBlock* rootBlock, int blockX, int blockY, int tx, int ty,
                                    int& lastTop, int& lastLeft, int& lastRight, const PaintInfo* i);
    QRect fillVerticalSelectionGap(int lastTop, int lastLeft, int lastRight,
                                   int bottomY, RenderBlock* rootBlock, int blockX, int blockY, const PaintInfo* i);
    QRect fillLeftSelectionGap(RenderObject* selObj, int xPos, int yPos, int height, RenderBlock* rootBlock, int blockX, int blockY, int tx, int ty, const PaintInfo* i);
    QRect fillRightSelectionGap(RenderObject* selObj, int xPos, int yPos, int height, RenderBlock* rootBlock, int blockX, int blockY, int tx, int ty, const PaintInfo* i);
    QRect fillHorizontalSelectionGap(RenderObject* selObj, int xPos, int yPos, int width, int height, const PaintInfo* i);

    void getHorizontalSelectionGapInfo(SelectionState state, bool& leftGap, bool& rightGap);
    int leftSelectionOffset(RenderBlock* rootBlock, int y);
    int rightSelectionOffset(RenderBlock* rootBlock, int y);

#ifndef NDEBUG
    virtual void printTree(int indent=0) const;
    virtual void dump(QTextStream *stream, QString ind = "") const;
#endif

    // Helper methods for computing line counts and heights for line counts.
    RootInlineBox* lineAtIndex(int i);
    int lineCount();
    int heightForLineCount(int l);
    void clearTruncation();

protected:
    void newLine();

private:
    DOM::Position positionForBox(InlineBox *box, bool start=true) const;
    DOM::Position positionForRenderer(RenderObject *renderer, bool start=true) const;
    bool skipNonBreakingSpace(BidiIterator &it);

protected:
    struct FloatingObject {
        enum Type {
            FloatLeft,
            FloatRight
        };

        FloatingObject(Type _type) {
            node = 0;
            startY = 0;
            endY = 0;
            type = _type;
            left = 0;
            width = 0;
            noPaint = false;
        }

        RenderObject* node;
        int startY;
        int endY;
        int left;
        int width;
        Type type : 1; // left or right aligned
        bool noPaint : 1;
    };

    // The following helper functions and structs are used by layoutBlockChildren.
    class CompactInfo {
        // A compact child that needs to be collapsed into the margin of the following block.
        RenderObject* m_compact;

        // The block with the open margin that the compact child is going to place itself within.
        RenderObject* m_block;

    public:
        RenderObject* compact() const { return m_compact; }
        RenderObject* block() const { return m_block; }
        bool matches(RenderObject* child) const { return m_compact && m_block == child; }

        void clear() { set(0, 0);  }
        void set(RenderObject* c, RenderObject* b) { m_compact = c; m_block = b; }

        CompactInfo() { clear(); }
    };

    class MarginInfo {
        // Collapsing flags for whether we can collapse our margins with our children's margins.
        bool m_canCollapseWithChildren : 1;
        bool m_canCollapseTopWithChildren : 1;
        bool m_canCollapseBottomWithChildren : 1;

        // Whether or not we are a quirky container, i.e., do we collapse away top and bottom
        // margins in our container.  Table cells and the body are the common examples. We
        // also have a custom style property for Safari RSS to deal with TypePad blog articles.
        bool m_quirkContainer : 1;

        // This flag tracks whether we are still looking at child margins that can all collapse together at the beginning of a block.
        // They may or may not collapse with the top margin of the block (|m_canCollapseTopWithChildren| tells us that), but they will
        // always be collapsing with one another.  This variable can remain set to true through multiple iterations
        // as long as we keep encountering self-collapsing blocks.
        bool m_atTopOfBlock : 1;

        // This flag is set when we know we're examining bottom margins and we know we're at the bottom of the block.
        bool m_atBottomOfBlock : 1;

        // If our last normal flow child was a self-collapsing block that cleared a float,
        // we track it in this variable.
        bool m_selfCollapsingBlockClearedFloat : 1;

        // These variables are used to detect quirky margins that we need to collapse away (in table cells
        // and in the body element).
        bool m_topQuirk : 1;
        bool m_bottomQuirk : 1;
        bool m_determinedTopQuirk : 1;

        // These flags track the previous maximal positive and negative margins.
        int m_posMargin;
        int m_negMargin;

    public:
        MarginInfo(RenderBlock* b, int top, int bottom);

        void setAtTopOfBlock(bool b) { m_atTopOfBlock = b; }
        void setAtBottomOfBlock(bool b) { m_atBottomOfBlock = b; }
        void clearMargin() { m_posMargin = m_negMargin = 0; }
        void setSelfCollapsingBlockClearedFloat(bool b) { m_selfCollapsingBlockClearedFloat = b; }
        void setTopQuirk(bool b) { m_topQuirk = b; }
        void setBottomQuirk(bool b) { m_bottomQuirk = b; }
        void setDeterminedTopQuirk(bool b) { m_determinedTopQuirk = b; }
        void setPosMargin(int p) { m_posMargin = p; }
        void setNegMargin(int n) { m_negMargin = n; }
        void setPosMarginIfLarger(int p) { if (p > m_posMargin) m_posMargin = p; }
        void setNegMarginIfLarger(int n) { if (n > m_negMargin) m_negMargin = n; }

        void setMargin(int p, int n) { m_posMargin = p; m_negMargin = n; }

        bool atTopOfBlock() const { return m_atTopOfBlock; }
        bool canCollapseWithTop() const { return m_atTopOfBlock && m_canCollapseTopWithChildren; }
        bool canCollapseWithBottom() const { return m_atBottomOfBlock && m_canCollapseBottomWithChildren; }
        bool canCollapseTopWithChildren() const { return m_canCollapseTopWithChildren; }
        bool canCollapseBottomWithChildren() const { return m_canCollapseBottomWithChildren; }
        bool selfCollapsingBlockClearedFloat() const { return m_selfCollapsingBlockClearedFloat; }
        bool quirkContainer() const { return m_quirkContainer; }
        bool determinedTopQuirk() const { return m_determinedTopQuirk; }
        bool topQuirk() const { return m_topQuirk; }
        bool bottomQuirk() const { return m_bottomQuirk; }
        int posMargin() const { return m_posMargin; }
        int negMargin() const { return m_negMargin; }
        int margin() const { return m_posMargin - m_negMargin; }
    };

    void adjustPositionedBlock(RenderObject* child, const MarginInfo& marginInfo);
    void adjustFloatingBlock(const MarginInfo& marginInfo);
    RenderObject* handleSpecialChild(RenderObject* child, const MarginInfo& marginInfo, CompactInfo& compactInfo, bool& handled);
    RenderObject* handleFloatingChild(RenderObject* child, const MarginInfo& marginInfo, bool& handled);
    RenderObject* handlePositionedChild(RenderObject* child, const MarginInfo& marginInfo, bool& handled);
    RenderObject* handleCompactChild(RenderObject* child, CompactInfo& compactInfo, bool& handled);
    RenderObject* handleRunInChild(RenderObject* child, bool& handled);
    void collapseMargins(RenderObject* child, MarginInfo& marginInfo, int yPosEstimate);
    void clearFloatsIfNeeded(RenderObject* child, MarginInfo& marginInfo, int oldTopPosMargin, int oldTopNegMargin);
    void insertCompactIfNeeded(RenderObject* child, CompactInfo& compactInfo);
    int estimateVerticalPosition(RenderObject* child, const MarginInfo& info);
    void determineHorizontalPosition(RenderObject* child);
    void handleBottomOfBlock(int top, int bottom, MarginInfo& marginInfo);
    void setCollapsedBottomMargin(const MarginInfo& marginInfo);
    // End helper functions and structs used by layoutBlockChildren.

protected:
    QPtrList<FloatingObject>* m_floatingObjects;
    QPtrList<RenderObject>* m_positionedObjects;

    bool m_childrenInline : 1;
    bool m_pre            : 1;
    bool m_firstLine      : 1;
    EClear m_clearStatus  : 2;
    bool m_topMarginQuirk : 1;
    bool m_bottomMarginQuirk : 1;
    bool m_hasMarkupTruncation : 1;
    SelectionState m_selectionState : 3;

    int m_maxTopPosMargin;
    int m_maxTopNegMargin;
    int m_maxBottomPosMargin;
    int m_maxBottomNegMargin;

    // How much content overflows out of our block vertically or horizontally (all we support
    // for now is spillage out of the bottom and the right, which are the common cases).
    // XXX Generalize to work with top and left as well.
    int m_overflowHeight;
    int m_overflowWidth;

    // Left and top overflow.  Does not affect scrolling dimensions, but we do at least use it
    // when dirty rect checking and hit testing.
    int m_overflowLeft;
    int m_overflowTop;
};

}; // namespace

#ifdef __WINSCW__
#pragma enumsalwaysint reset
#endif

#endif // RENDER_BLOCK_H

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久天堂av| 欧美激情在线看| 欧美视频第二页| 91久久一区二区| 欧美日韩精品一区二区三区蜜桃| 99国产精品久久| 欧美日韩大陆在线| 国产日韩欧美精品综合| 亚洲人成在线播放网站岛国| 亚洲一区在线观看免费 | 亚洲在线成人精品| 久久成人免费日本黄色| 成人国产一区二区三区精品| 久久久不卡影院| 欧美精品久久一区| 顶级嫩模精品视频在线看| 久久爱www久久做| 国产欧美精品一区二区三区四区| 国产亚洲一区二区三区在线观看| 欧美一区二区网站| 亚洲码国产岛国毛片在线| 国产一区二区中文字幕| 欧美久久一二三四区| 男人的j进女人的j一区| 石原莉奈一区二区三区在线观看| 综合中文字幕亚洲| 精品一区二区三区视频在线观看 | 洋洋成人永久网站入口| 精品一区二区三区免费观看| 欧美日本不卡视频| 一区二区三区色| 成人91在线观看| 中文字幕在线不卡国产视频| 黄页网站大全一区二区| 日本不卡不码高清免费观看| 欧美主播一区二区三区| 亚洲一卡二卡三卡四卡五卡| 99r国产精品| 亚洲精品免费一二三区| 色成年激情久久综合| 亚洲综合色视频| 欧美一区二区日韩| 国产精品综合二区| 国产精品久久三| 91福利在线观看| 日本v片在线高清不卡在线观看| 欧美日韩第一区日日骚| 国产精品主播直播| 亚洲国产精品久久久久秋霞影院 | 久久午夜色播影院免费高清| 国产精品99久久久久久有的能看 | 亚洲视频在线一区| 91精品国产一区二区三区蜜臀| 黄页网站大全一区二区| 亚洲一区二区三区美女| 国产调教视频一区| 欧美一区二区在线不卡| 色综合久久久久| 久久精品二区亚洲w码| 日韩视频免费观看高清完整版| 国产日产精品1区| 91国产视频在线观看| 国产乱色国产精品免费视频| 亚洲欧美电影一区二区| 欧美va亚洲va香蕉在线| 欧美三级中文字幕在线观看| gogo大胆日本视频一区| 狠狠网亚洲精品| 欧美a级一区二区| 日韩精品每日更新| 日产国产欧美视频一区精品| 亚洲国产一区二区视频| 国产精品毛片久久久久久| 日韩亚洲欧美综合| 精品三级在线观看| 精品国产乱码久久久久久1区2区| 日韩片之四级片| 久久精品在这里| 亚洲欧洲一区二区在线播放| 国产精品麻豆一区二区 | 视频一区视频二区在线观看| 视频在线在亚洲| 国产一区在线精品| 成人av高清在线| 欧美日韩性生活| 久久久精品黄色| 亚洲精品v日韩精品| 日韩电影免费在线看| 风间由美一区二区三区在线观看 | 欧美大片在线观看一区| 欧美高清在线一区| 奇米精品一区二区三区在线观看| 九九九精品视频| 欧美伊人久久久久久久久影院 | 国产a久久麻豆| 精品免费国产二区三区| 亚洲一级二级三级在线免费观看| 久久国产婷婷国产香蕉| 欧美中文一区二区三区| 欧美国产日韩a欧美在线观看| 性做久久久久久免费观看| 不卡视频免费播放| 综合亚洲深深色噜噜狠狠网站| 美女视频第一区二区三区免费观看网站 | 日韩午夜av电影| 日韩主播视频在线| 欧美日韩一区二区三区在线| 国产精品不卡一区二区三区| 国产传媒一区在线| 欧美国产精品一区二区三区| 精久久久久久久久久久| 久久天堂av综合合色蜜桃网| 国产在线播精品第三| 国产欧美视频一区二区| 国产精品一区二区久久精品爱涩 | 亚洲国产精品ⅴa在线观看| 成人毛片视频在线观看| 日本一区二区免费在线观看视频 | 678五月天丁香亚洲综合网| 午夜精品久久久久久久| wwwwxxxxx欧美| 91一区二区三区在线观看| 一区二区三区精品久久久| 欧美中文字幕一二三区视频| 免费av成人在线| 国产精品久久久久永久免费观看| 成人av在线影院| 日本麻豆一区二区三区视频| 国产欧美一区二区精品性色| 欧美性做爰猛烈叫床潮| 国产精品一区在线观看你懂的| 亚洲综合免费观看高清完整版在线 | 91污片在线观看| 激情久久五月天| 日韩成人伦理电影在线观看| 欧美国产激情二区三区| 欧美大尺度电影在线| 欧美性感一类影片在线播放| 国产美女娇喘av呻吟久久| 一级中文字幕一区二区| 国产精品第13页| 国产精品网曝门| 国产日本一区二区| 国产精品婷婷午夜在线观看| 欧美不卡在线视频| 精品噜噜噜噜久久久久久久久试看| 91浏览器打开| 91女厕偷拍女厕偷拍高清| 成人免费视频caoporn| 国产一区二区三区高清播放| 久久狠狠亚洲综合| 国产sm精品调教视频网站| 国产盗摄精品一区二区三区在线| 国模大尺度一区二区三区| 国内精品久久久久影院薰衣草 | 国产美女精品在线| kk眼镜猥琐国模调教系列一区二区| 国产福利精品一区二区| 国产盗摄一区二区| 欧美日韩综合在线免费观看| 欧美一级欧美三级在线观看| 久久久久久久久蜜桃| 亚洲欧美日韩成人高清在线一区| 一区二区三区不卡视频| 麻豆精品久久久| 色综合久久久久| 国产欧美一区二区精品婷婷| 亚洲精选视频免费看| 精品一区二区免费在线观看| 91在线无精精品入口| 日韩一区二区电影网| 亚洲乱码中文字幕综合| 免费成人你懂的| 在线观看免费成人| 中文字幕av一区二区三区高| 蜜桃视频在线一区| 在线国产亚洲欧美| 亚洲天堂成人网| av中文字幕在线不卡| 国产欧美一区二区三区在线老狼| 天堂一区二区在线| 色噜噜狠狠成人网p站| 国产精品欧美一级免费| 国产一区不卡视频| 久久久久国产精品厨房| 国产麻豆视频精品| 国产欧美日韩视频在线观看| 久久精品噜噜噜成人av农村| 91精品国产乱码久久蜜臀| 五月天亚洲婷婷| 日韩欧美一级二级三级| 激情五月播播久久久精品| 日韩欧美国产综合| 国产美女在线精品| 日本一区二区不卡视频| 色国产综合视频| 日韩和欧美一区二区| 久久综合成人精品亚洲另类欧美| 国产精品一二三四五| 亚洲精品欧美激情|