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

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

Issue 1328283005: Add support for multiple text decorations with same line positioning (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 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) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after
1025 { 1025 {
1026 return style()->visitedDependentColor(colorProperty); 1026 return style()->visitedDependentColor(colorProperty);
1027 } 1027 }
1028 1028
1029 // Used only by Element::pseudoStyleCacheIsInvalid to get a first line style based off of a 1029 // Used only by Element::pseudoStyleCacheIsInvalid to get a first line style based off of a
1030 // given new style, without accessing the cache. 1030 // given new style, without accessing the cache.
1031 PassRefPtr<ComputedStyle> uncachedFirstLineStyle(ComputedStyle*) const; 1031 PassRefPtr<ComputedStyle> uncachedFirstLineStyle(ComputedStyle*) const;
1032 1032
1033 virtual CursorDirective getCursor(const LayoutPoint&, Cursor&) const; 1033 virtual CursorDirective getCursor(const LayoutPoint&, Cursor&) const;
1034 1034
1035 struct AppliedTextDecoration {
1036 STACK_ALLOCATED();
1037 Color color;
1038 TextDecorationStyle style;
1039 AppliedTextDecoration() : color(Color::transparent), style(TextDecoratio nStyleSolid) { }
1040 };
1041
1042 void getTextDecorations(unsigned decorations, AppliedTextDecoration& underli ne, AppliedTextDecoration& overline, AppliedTextDecoration& linethrough, bool qu irksMode = false, bool firstlineStyle = false);
1043
1044 // Return the LayoutBoxModelObject in the container chain which is responsib le for painting this object, or layout view 1035 // Return the LayoutBoxModelObject in the container chain which is responsib le for painting this object, or layout view
1045 // if painting is root-relative. This is the container that should be passed to the 'forPaintInvalidation' 1036 // if painting is root-relative. This is the container that should be passed to the 'forPaintInvalidation'
1046 // methods. 1037 // methods.
1047 const LayoutBoxModelObject& containerForPaintInvalidation() const; 1038 const LayoutBoxModelObject& containerForPaintInvalidation() const;
1048 1039
1049 const LayoutBoxModelObject* adjustCompositedContainerForSpecialAncestors(con st LayoutBoxModelObject* paintInvalidationContainer) const; 1040 const LayoutBoxModelObject* adjustCompositedContainerForSpecialAncestors(con st LayoutBoxModelObject* paintInvalidationContainer) const;
1050 bool isPaintInvalidationContainer() const; 1041 bool isPaintInvalidationContainer() const;
1051 1042
1052 LayoutRect computePaintInvalidationRect() 1043 LayoutRect computePaintInvalidationRect()
1053 { 1044 {
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after
2060 void showTree(const blink::LayoutObject*); 2051 void showTree(const blink::LayoutObject*);
2061 void showLineTree(const blink::LayoutObject*); 2052 void showLineTree(const blink::LayoutObject*);
2062 void showLayoutTree(const blink::LayoutObject* object1); 2053 void showLayoutTree(const blink::LayoutObject* object1);
2063 // We don't make object2 an optional parameter so that showLayoutTree 2054 // We don't make object2 an optional parameter so that showLayoutTree
2064 // can be called from gdb easily. 2055 // can be called from gdb easily.
2065 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 2056 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
2066 2057
2067 #endif 2058 #endif
2068 2059
2069 #endif // LayoutObject_h 2060 #endif // LayoutObject_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698