Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 2589143003: Add 'get' prefix for Settings.in generated code. (Closed)
Patch Set: Capitalize the prefix. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2009 Google Inc. All rights reserved. 8 * Copyright (C) 2009 Google Inc. All rights reserved.
9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved.
10 * (http://www.torchmobile.com/) 10 * (http://www.torchmobile.com/)
(...skipping 2461 matching lines...) Expand 10 before | Expand all | Expand 10 after
2472 // Respect the image's orientation if it's being used as a full-page image or 2472 // Respect the image's orientation if it's being used as a full-page image or
2473 // it's an <img> and the setting to respect it everywhere is set or the <img> 2473 // it's an <img> and the setting to respect it everywhere is set or the <img>
2474 // has image-orientation: from-image style. FIXME: crbug.com/498233 2474 // has image-orientation: from-image style. FIXME: crbug.com/498233
2475 if (layoutObject->document().isImageDocument()) 2475 if (layoutObject->document().isImageDocument())
2476 return RespectImageOrientation; 2476 return RespectImageOrientation;
2477 2477
2478 if (!isHTMLImageElement(layoutObject->node())) 2478 if (!isHTMLImageElement(layoutObject->node()))
2479 return DoNotRespectImageOrientation; 2479 return DoNotRespectImageOrientation;
2480 2480
2481 if (layoutObject->document().settings() && 2481 if (layoutObject->document().settings() &&
2482 layoutObject->document().settings()->shouldRespectImageOrientation()) 2482 layoutObject->document().settings()->GetShouldRespectImageOrientation())
2483 return RespectImageOrientation; 2483 return RespectImageOrientation;
2484 2484
2485 if (layoutObject->style() && 2485 if (layoutObject->style() &&
2486 layoutObject->style()->respectImageOrientation() == 2486 layoutObject->style()->respectImageOrientation() ==
2487 RespectImageOrientation) 2487 RespectImageOrientation)
2488 return RespectImageOrientation; 2488 return RespectImageOrientation;
2489 2489
2490 return DoNotRespectImageOrientation; 2490 return DoNotRespectImageOrientation;
2491 } 2491 }
2492 2492
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
3126 return false; 3126 return false;
3127 3127
3128 // If we're not in a window (i.e., we're dormant from being in a background 3128 // If we're not in a window (i.e., we're dormant from being in a background
3129 // tab) then we don't want to render either. 3129 // tab) then we don't want to render either.
3130 return document().view()->isVisible(); 3130 return document().view()->isVisible();
3131 } 3131 }
3132 3132
3133 bool LayoutObject::getImageAnimationPolicy(ImageAnimationPolicy& policy) { 3133 bool LayoutObject::getImageAnimationPolicy(ImageAnimationPolicy& policy) {
3134 if (!document().settings()) 3134 if (!document().settings())
3135 return false; 3135 return false;
3136 policy = document().settings()->imageAnimationPolicy(); 3136 policy = document().settings()->GetImageAnimationPolicy();
3137 return true; 3137 return true;
3138 } 3138 }
3139 3139
3140 int LayoutObject::caretMinOffset() const { 3140 int LayoutObject::caretMinOffset() const {
3141 return 0; 3141 return 0;
3142 } 3142 }
3143 3143
3144 int LayoutObject::caretMaxOffset() const { 3144 int LayoutObject::caretMaxOffset() const {
3145 if (isAtomicInlineLevel()) 3145 if (isAtomicInlineLevel())
3146 return node() ? std::max(1U, node()->countChildren()) : 1; 3146 return node() ? std::max(1U, node()->countChildren()) : 1;
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
3519 const blink::LayoutObject* root = object1; 3519 const blink::LayoutObject* root = object1;
3520 while (root->parent()) 3520 while (root->parent())
3521 root = root->parent(); 3521 root = root->parent();
3522 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3522 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3523 } else { 3523 } else {
3524 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); 3524 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)");
3525 } 3525 }
3526 } 3526 }
3527 3527
3528 #endif 3528 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698