| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Simon Hausmann <hausmann@kde.org> | 5 * 2000 Simon Hausmann <hausmann@kde.org> |
| 6 * 2000 Stefan Schimanski <1Stein@gmx.de> | 6 * 2000 Stefan Schimanski <1Stein@gmx.de> |
| 7 * 2001 George Staikos <staikos@kde.org> | 7 * 2001 George Staikos <staikos@kde.org> |
| 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> | 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> |
| 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 frameView = FrameView::create(this, viewportSize); | 295 frameView = FrameView::create(this, viewportSize); |
| 296 | 296 |
| 297 // The layout size is set by WebViewImpl to support @viewport | 297 // The layout size is set by WebViewImpl to support @viewport |
| 298 frameView->setLayoutSizeFixedToFrameSize(false); | 298 frameView->setLayoutSizeFixedToFrameSize(false); |
| 299 | 299 |
| 300 setView(frameView); | 300 setView(frameView); |
| 301 | 301 |
| 302 frameView->updateBackgroundRecursively(backgroundColor, transparent); | 302 frameView->updateBackgroundRecursively(backgroundColor, transparent); |
| 303 } | 303 } |
| 304 | 304 |
| 305 | |
| 306 void LocalFrame::countObjectsNeedingLayout(unsigned& needsLayoutObjects, unsigne
d& totalObjects, bool& isPartial) | |
| 307 { | |
| 308 RenderObject* root = view()->layoutRoot(); | |
| 309 isPartial = true; | |
| 310 if (!root) { | |
| 311 isPartial = false; | |
| 312 root = contentRenderer(); | |
| 313 } | |
| 314 | |
| 315 needsLayoutObjects = 0; | |
| 316 totalObjects = 0; | |
| 317 | |
| 318 for (RenderObject* o = root; o; o = o->nextInPreOrder(root)) { | |
| 319 ++totalObjects; | |
| 320 if (o->needsLayout()) | |
| 321 ++needsLayoutObjects; | |
| 322 } | |
| 323 } | |
| 324 | |
| 325 void LocalFrame::deviceOrPageScaleFactorChanged() | 305 void LocalFrame::deviceOrPageScaleFactorChanged() |
| 326 { | 306 { |
| 327 document()->mediaQueryAffectingValueChanged(); | 307 document()->mediaQueryAffectingValueChanged(); |
| 328 } | 308 } |
| 329 | 309 |
| 330 void LocalFrame::removeSpellingMarkersUnderWords(const Vector<String>& words) | 310 void LocalFrame::removeSpellingMarkersUnderWords(const Vector<String>& words) |
| 331 { | 311 { |
| 332 spellChecker().removeSpellingMarkersUnderWords(words); | 312 spellChecker().removeSpellingMarkersUnderWords(words); |
| 333 } | 313 } |
| 334 | 314 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 350 }; | 330 }; |
| 351 | 331 |
| 352 double LocalFrame::devicePixelRatio() const | 332 double LocalFrame::devicePixelRatio() const |
| 353 { | 333 { |
| 354 if (!m_host) | 334 if (!m_host) |
| 355 return 0; | 335 return 0; |
| 356 return m_host->deviceScaleFactor(); | 336 return m_host->deviceScaleFactor(); |
| 357 } | 337 } |
| 358 | 338 |
| 359 } // namespace blink | 339 } // namespace blink |
| OLD | NEW |