📄 render_body.cpp
字号:
/** * This file is part of the html renderer for KDE. * * Copyright (C) 2000-2003 Lars Knoll (knoll@kde.org) * * 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., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. * */#include "rendering/render_body.h"#include "rendering/render_canvas.h"#include "html/html_baseimpl.h"#include "xml/dom_docimpl.h"#include "khtmlview.h"#include <kglobal.h>#include <kdebug.h>using namespace khtml;using namespace DOM;RenderBody::RenderBody(HTMLBodyElementImpl* element) : RenderBlock(element){ scrollbarsStyled = false;}RenderBody::~RenderBody(){}void RenderBody::setStyle(RenderStyle* style){// qDebug("RenderBody::setStyle()"); // ignore position: fixed on body if (style->htmlHacks() && style->position() == FIXED) style->setPosition(STATIC); RenderBlock::setStyle(style); element()->getDocument()->setTextColor( style->color() ); scrollbarsStyled = false;}void RenderBody::paintBoxDecorations(PaintInfo& paintInfo, int _tx, int _ty){ //kdDebug( 6040 ) << renderName() << "::paintDecorations()" << endl; QColor bgColor; const BackgroundLayer *bgLayer = 0; if( parent()->style()->hasBackground() ) { // the root element already has a non-transparent background of its own // so we must fork our own. (CSS2.1 - 14.2
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -