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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. Created 3 years, 11 months 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index d2a508f42f5dfed164799736883fbe6cfdc30402..507c6e6e68cf42977226c2c26c0f1f6f39e08163 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -326,7 +326,7 @@ void LayoutObject::addChild(LayoutObject* newChild, LayoutObject* beforeChild) {
}
if (newChild->isText() &&
- newChild->style()->textTransform() == ETextTransform::Capitalize)
+ newChild->style()->textTransform() == ETextTransform::kCapitalize)
toLayoutText(newChild)->transformText();
// SVG creates layoutObjects for <g display="none">, as SVG requires children
@@ -2680,8 +2680,8 @@ void LayoutObject::insertedIntoTree() {
// If |this| is visible but this object was not, tell the layer it has some
// visible content that needs to be drawn and layer visibility optimization
// can't be used
- if (parent()->style()->visibility() != EVisibility::Visible &&
- style()->visibility() == EVisibility::Visible && !hasLayer()) {
+ if (parent()->style()->visibility() != EVisibility::kVisible &&
+ style()->visibility() == EVisibility::kVisible && !hasLayer()) {
if (!layer)
layer = parent()->enclosingLayer();
if (layer)
@@ -2739,8 +2739,8 @@ void LayoutObject::willBeRemovedFromTree() {
// If we remove a visible child from an invisible parent, we don't know the
// layer visibility any more.
PaintLayer* layer = nullptr;
- if (parent()->style()->visibility() != EVisibility::Visible &&
- style()->visibility() == EVisibility::Visible && !hasLayer()) {
+ if (parent()->style()->visibility() != EVisibility::kVisible &&
+ style()->visibility() == EVisibility::kVisible && !hasLayer()) {
layer = parent()->enclosingLayer();
if (layer)
layer->dirtyVisibleContentStatus();
@@ -3120,7 +3120,7 @@ LayoutObject::getUncachedPseudoStyleFromParentOrShadowHost() const {
void LayoutObject::addAnnotatedRegions(Vector<AnnotatedRegionValue>& regions) {
// Convert the style regions to absolute coordinates.
- if (style()->visibility() != EVisibility::Visible || !isBox())
+ if (style()->visibility() != EVisibility::kVisible || !isBox())
return;
if (style()->getDraggableRegionMode() == DraggableRegionNone)
@@ -3139,7 +3139,7 @@ void LayoutObject::addAnnotatedRegions(Vector<AnnotatedRegionValue>& regions) {
bool LayoutObject::willRenderImage() {
// Without visibility we won't render (and therefore don't care about
// animation).
- if (style()->visibility() != EVisibility::Visible)
+ if (style()->visibility() != EVisibility::kVisible)
return false;
// We will not render a new image when SuspendableObjects is suspended
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/layout/LayoutPart.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698